Anton Komlev | 4bfd6c5 | 2022-06-29 17:10:26 +0100 | [diff] [blame^] | 1 | ############################### |
| 2 | TF-M Example Partition - Readme |
| 3 | ############################### |
| 4 | The TF-M example partition is a simple secure partition implementation provided |
| 5 | to aid development of new secure partitions. It implements one App RoT Service |
| 6 | and one interrupt handler. |
| 7 | |
| 8 | ******************************** |
| 9 | How to run the example partition |
| 10 | ******************************** |
| 11 | #. Copy the ``example_partition`` directory to the ``secure_fw/partitions`` |
| 12 | directory of the TF-M repo. |
| 13 | |
| 14 | #. Add the partition to the TF-M CMake by inserting |
| 15 | ``add_subdirectory(partitions/example_partition)`` in |
| 16 | ``secure_fw/CMakeLists.txt``, in the block below the line |
| 17 | ``add_subdirectory(partitions/lib/sprt)``. |
| 18 | |
| 19 | #. Add the following entry to ``tools/tfm_manifest_list.yaml``. The ``pid`` |
| 20 | field must be unique (currently used partition ids are documented in |
| 21 | tfm_secure_partition_addition.rst on line 150), or can omitted which will |
| 22 | allocate one automatically. :: |
| 23 | |
| 24 | { |
| 25 | "name": "TF-M Example Partition", |
| 26 | "short_name": "TFM_SP_EXAMPLE", |
| 27 | "manifest": "secure_fw/partitions/example_partition/tfm_example_partition.yaml", |
| 28 | "conditional": "TFM_PARTITION_EXAMPLE", |
| 29 | "version_major": 0, |
| 30 | "version_minor": 1, |
| 31 | "pid": 356, |
| 32 | "linker_pattern": { |
| 33 | "library_list": [ |
| 34 | "*tfm_*partition_example.*" |
| 35 | ] |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | #. Build TF-M in the usual way, but provide ``-DTFM_PARTITION_EXAMPLE=ON`` as a |
| 40 | parameter to the CMake command. |
| 41 | |
| 42 | -------------- |
| 43 | |
| 44 | *Copyright (c) 2020-2021, Arm Limited. All rights reserved.* |