Example: Add TF-M example partition
Change-Id: I52f2f24af2c9ed239d033c62c7c7bea7b431311c
Co-authored-by: Jamie Fox <jamie.fox@arm.com>
Signed-off-by: Jamie Fox <jamie.fox@arm.com>
diff --git a/example_partition/tfm_example_partition_readme.rst b/example_partition/tfm_example_partition_readme.rst
new file mode 100644
index 0000000..47aca5c
--- /dev/null
+++ b/example_partition/tfm_example_partition_readme.rst
@@ -0,0 +1,36 @@
+###############################
+TF-M Example Partition - Readme
+###############################
+The TF-M example partition is a simple secure partition implementation provided
+to aid development of new secure partitions. It implements one RoT Service and
+one interrupt handler.
+
+********************************
+How to run the example partition
+********************************
+#. 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``::
+
+ {
+ "name": "TF-M Example Partition",
+ "short_name": "TFM_SP_EXAMPLE",
+ "manifest": "secure_fw/partitions/example_partition/tfm_example_partition.yaml",
+ "tfm_partition_ipc": true,
+ "conditional": "TFM_PARTITION_EXAMPLE",
+ "version_major": 0,
+ "version_minor": 1,
+ "pid": 270,
+ "linker_pattern": {
+ "library_list": [
+ "*tfm_partition_example.*"
+ ]
+ }
+ }
+
+#. Build TF-M in the usual way, but provide ``-DTFM_PARTITION_EXAMPLE=ON`` as a
+ parameter to the CMake command.
+
+--------------
+
+*Copyright (c) 2020, Arm Limited. All rights reserved.*