blob: 416ee7f7b8ff4d7de28e6a648b04fe7952ab866b [file] [log] [blame]
Boris Deletic08f48962020-10-28 12:42:58 +00001###############################
2TF-M Example Partition - Readme
3###############################
4The TF-M example partition is a simple secure partition implementation provided
Shawn Shanfe9cd2d2021-06-18 13:34:13 +08005to aid development of new secure partitions. It implements one App RoT Service
6and one interrupt handler.
Boris Deletic08f48962020-10-28 12:42:58 +00007
8********************************
9How to run the example partition
10********************************
11#. Copy the ``example_partition`` directory to the ``secure_fw/partitions``
12 directory of the TF-M repo.
Raef Colesb8c93e32021-06-03 10:10:45 +010013
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. ::
Boris Deletic08f48962020-10-28 12:42:58 +000023
24 {
25 "name": "TF-M Example Partition",
26 "short_name": "TFM_SP_EXAMPLE",
27 "manifest": "secure_fw/partitions/example_partition/tfm_example_partition.yaml",
Boris Deletic08f48962020-10-28 12:42:58 +000028 "conditional": "TFM_PARTITION_EXAMPLE",
29 "version_major": 0,
30 "version_minor": 1,
Raef Colesb8c93e32021-06-03 10:10:45 +010031 "pid": 356,
Boris Deletic08f48962020-10-28 12:42:58 +000032 "linker_pattern": {
33 "library_list": [
Raef Colesb8c93e32021-06-03 10:10:45 +010034 "*tfm_*partition_example.*"
Boris Deletic08f48962020-10-28 12:42:58 +000035 ]
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
Raef Colesb8c93e32021-06-03 10:10:45 +010044*Copyright (c) 2020-2021, Arm Limited. All rights reserved.*