Skip to content

Commit 9e516ee

Browse files
committed
doc: update TF-M requirements
The TF-M requirements document contained a hard-coded list of Python packages which is incomplete and can easily drift out of sync with the TF-M project. Replace this list with a reference to TF-M’s own ``tools/requirements.txt`` so that all required dependencies are covered. Also update the list of boards that support TF-M. Signed-off-by: Sudan Landge <[email protected]>
1 parent 5e7bd25 commit 9e516ee

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

doc/services/tfm/requirements.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ The following are some of the boards that can be used with TF-M:
1111
* - :ref:`mps2_an521_board`
1212
- ``mps2/an521/cpu0/ns`` (qemu supported)
1313
* - :ref:`mps3_board`
14-
- ``mps3/corstone300/an547/ns`` (qemu supported)
14+
-
15+
- ``mps3/corstone300/fvp/ns`` (armfvp supported)
16+
- ``mps3/corstone310/fvp/ns`` (armfvp supported)
17+
* - :zephyr:board:`mps4`
18+
-
19+
- ``mps4/corstone315/fvp/ns`` (armfvp supported)
20+
- ``mps4/corstone320/fvp/ns`` (armfvp supported)
1521
* - :zephyr:board:`bl5340_dvk`
1622
- ``bl5340_dvk/nrf5340/cpuapp/ns``
1723
* - :zephyr:board:`lpcxpresso55s69`
@@ -38,21 +44,15 @@ is set to ``y`` in that board's default configuration.
3844
Software Requirements
3945
*********************
4046

41-
The following Python modules are required when building TF-M binaries:
42-
43-
* cryptography
44-
* pyasn1
45-
* pyyaml
46-
* cbor>=1.0.0
47-
* imgtool>=1.9.0
48-
* jinja2
49-
* click
47+
The Python modules required when building TF-M binaries are listed in the
48+
TF-M repository under ``tools/requirements.txt``. Because module locations
49+
can vary across workspaces, use ``west`` to locate TF-M before installing.
5050

5151
You can install them via:
5252

5353
.. code-block:: bash
5454
55-
$ pip3 install --user cryptography pyasn1 pyyaml cbor>=1.0.0 imgtool>=1.9.0 jinja2 click
55+
$ pip3 install -r "$(west list trusted-firmware-m -f '{abspath}')/tools/requirements.txt"
5656
5757
They are used by TF-M's signing utility to prepare firmware images for
5858
validation by the bootloader.

0 commit comments

Comments
 (0)