Example: Update example partition
To fix some docs and cmake issues
Change-Id: I13b486da854651839ce6ca19c8d0362ac72b02dc
Signed-off-by: Raef Coles <raef.coles@arm.com>
diff --git a/example_partition/tfm_example_partition_readme.rst b/example_partition/tfm_example_partition_readme.rst
index 47aca5c..571161a 100644
--- a/example_partition/tfm_example_partition_readme.rst
+++ b/example_partition/tfm_example_partition_readme.rst
@@ -10,7 +10,16 @@
********************************
#. Copy the ``example_partition`` directory to the ``secure_fw/partitions``
directory of the TF-M repo.
-#. Add the following entry to ``tools/tfm_manifest_list.yaml``::
+
+#. Add the partition to the TF-M CMake by inserting
+ ``add_subdirectory(partitions/example_partition)`` in
+ ``secure_fw/CMakeLists.txt``, in the block below the line
+ ``add_subdirectory(partitions/lib/sprt)``.
+
+#. Add the following entry to ``tools/tfm_manifest_list.yaml``. The ``pid``
+ field must be unique (currently used partition ids are documented in
+ tfm_secure_partition_addition.rst on line 150), or can omitted which will
+ allocate one automatically. ::
{
"name": "TF-M Example Partition",
@@ -20,10 +29,10 @@
"conditional": "TFM_PARTITION_EXAMPLE",
"version_major": 0,
"version_minor": 1,
- "pid": 270,
+ "pid": 356,
"linker_pattern": {
"library_list": [
- "*tfm_partition_example.*"
+ "*tfm_*partition_example.*"
]
}
}
@@ -33,4 +42,4 @@
--------------
-*Copyright (c) 2020, Arm Limited. All rights reserved.*
+*Copyright (c) 2020-2021, Arm Limited. All rights reserved.*