Update the example Partition
- Updates the README.
- Upgrades to firmware framework v1.1
- Combine the service APIs into a single file
- Adds manifest list
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
Change-Id: I1f9c35413bfe4214a08f8eb56cb435480863139e
diff --git a/examples/example_partition/CMakeLists.txt b/examples/example_partition/CMakeLists.txt
index 0aabff2..87e46b3 100644
--- a/examples/example_partition/CMakeLists.txt
+++ b/examples/example_partition/CMakeLists.txt
@@ -1,5 +1,5 @@
#-------------------------------------------------------------------------------
-# Copyright (c) 2020-2021, Arm Limited. All rights reserved.
+# Copyright (c) 2020-2022, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -17,46 +17,53 @@
# linker script will lay the partition in memory.
add_library(tfm_app_rot_partition_example STATIC)
-# Add the source files generated by parse tools when building. The intermedia
-# file defines the partition stack. The load info file includes the static data
-# of the partition.
target_sources(tfm_app_rot_partition_example
PRIVATE
tfm_example_partition.c
- $<$<BOOL:${TFM_PSA_API}>:
- ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/example_partition/auto_generated/intermedia_tfm_example_partition.c>
)
+
+# Add the source files generated by parse tools when building.
+# The intermedia file defines the partition stack.
+target_sources(tfm_app_rot_partition_example
+ PRIVATE
+ ${CMAKE_BINARY_DIR}/generated/example_partition/auto_generated/intermedia_tfm_example_partition.c
+)
+
+# The load info file includes the static data of the partition.
target_sources(tfm_partitions
INTERFACE
- $<$<BOOL:${TFM_PSA_API}>:
- ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/example_partition/auto_generated/load_info_tfm_example_partition.c>
+ ${CMAKE_BINARY_DIR}/generated/example_partition/auto_generated/load_info_tfm_example_partition.c
)
target_include_directories(tfm_app_rot_partition_example
PRIVATE
- $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
+ ${CMAKE_CURRENT_SOURCE_DIR}
PUBLIC
- ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/example_partition
+ ${CMAKE_BINARY_DIR}/generated/example_partition
)
target_link_libraries(tfm_app_rot_partition_example
PRIVATE
tfm_secure_api
psa_interface
- platform_s
tfm_sprt
)
############################ Secure API ########################################
-target_sources(tfm_secure_api
+target_sources(tfm_sprt
INTERFACE
- ${CMAKE_CURRENT_SOURCE_DIR}/tfm_example_partition_secure_api.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/tfm_example_partition_api.c
+)
+
+target_include_directories(tfm_sprt
+ PUBLIC
+ .
)
# The veneers give warnings about not being properly declared so they get hidden
# to not overshadow _real_ warnings.
-set_source_files_properties(tfm_example_partition_secure_api.c
+set_source_files_properties(tfm_example_partition_api.c
PROPERTIES
COMPILE_FLAGS -Wno-implicit-function-declaration
)