Skip to content

Commit bc142c7

Browse files
Documentation howto (#9)
To be merge after #7
2 parents ebbec6d + fced241 commit bc142c7

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

doc/gettingstarted.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _getting-barbican:
2+
13
Getting Barbican
24
================
35

@@ -16,6 +18,7 @@ virtualenv).
1618
pip install [--user] outpost-barbican
1719
1820
.. note::
21+
1922
Do not install for user in a virtualenv.
2023

2124
.. tip::

doc/howto.rst

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
HowTo
2+
=====
3+
4+
Sample project build
5+
--------------------
6+
7+
Environment setup
8+
^^^^^^^^^^^^^^^^^
9+
10+
Python environment
11+
""""""""""""""""""
12+
Barbican supports python 3.10+ and can be install from PyPI or github repository.
13+
For use as Integration Kit, `tools` extra dependencies must be installed.
14+
15+
.. code-block:: console
16+
17+
pip install [--user] outpost-barbican[tools]
18+
19+
.. seealso::
20+
21+
:ref:`Getting Barbican <getting-barbican>` Section.
22+
23+
C environment
24+
"""""""""""""
25+
26+
A GCC compiler is required w/ at least C11 support and `binutils` 2.39 as the linker needs
27+
to support `--package-metadata option <https://systemd.io/ELF_PACKAGE_METADATA/>`_.
28+
Pre built C toolchain for arm Cortex-M cores can be found
29+
`here <https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads>`_.
30+
31+
.. tip::
32+
33+
ARM developer toolchain version 12+ are mandatory, prior to 12.x, the `binutils`
34+
packaged version does not meet requirements.
35+
36+
37+
.. todo::
38+
39+
Barbican will provide C toolchain in SDK in next major releases
40+
41+
42+
Rust environment
43+
""""""""""""""""
44+
45+
One may use `rustup <https://www.rust-lang.org/tools/install>`_ for rust environment setup.
46+
The following targets are supported and might be installed:
47+
- thumbv7em-none-eabi
48+
- thumbv8m.main-none-eabi
49+
50+
The minimum required version is 1.82

doc/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Welcome to barbican documentation!
1010
:caption: Contents:
1111

1212
gettingstarted.rst
13+
howto.rst
1314
commands/barbican.rst
1415
commands/internals.rst
1516
reference_manual/index.rst

0 commit comments

Comments
 (0)