Build: Add dependencies for the manifest tool
This patch adds dependencies for the manifest tool so that any change on
the files the manifest tool consumes will trigger the manifest tool to
re-run thus make the changes take effect.
This patch also removes the unnecessary link to psa_interface as it has
been publicly linked by tfm_sprt.
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
Change-Id: I3170a86e50dfdc946f56ff451ae6fa1436e2aeae
diff --git a/examples/example_partition/CMakeLists.txt b/examples/example_partition/CMakeLists.txt
index cb31de6..20c6aa9 100644
--- a/examples/example_partition/CMakeLists.txt
+++ b/examples/example_partition/CMakeLists.txt
@@ -35,6 +35,9 @@
${CMAKE_BINARY_DIR}/generated/example_partition/auto_generated/load_info_tfm_example_partition.c
)
+# Add dependency to the manifest_tool
+add_dependencies(tfm_app_rot_partition_example manifest_tool)
+
target_include_directories(tfm_app_rot_partition_example
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}
@@ -44,7 +47,6 @@
target_link_libraries(tfm_app_rot_partition_example
PRIVATE
- psa_interface
tfm_sprt
)