Build: Merge secure_api & sp_log_raw into tfm_sprt
This patch merges tfm_secure_api and tfm_sp_log_raw library
into tfm_sprt.
The APIs in tfm_secure_api and tfm_sp_log_raw are for Secure
Partitions usage thereforce they can naturally be moved to tfm_sprt
as tfm_sprt is intended for Secure Partition usages.
This patch also changes tfm_sprt to publicly link psa_interface.
With these changes, Secure Partition libraries need to link a single
tfm_sprt for all interactions with the framework.
This patch also removes some unnecessary links.
Change-Id: I99b1e3c6ae1e956435bcfdf5b0db77d9f6f2a3f3
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
diff --git a/interface/CMakeLists.txt b/interface/CMakeLists.txt
index 2d061b8..932dc10 100644
--- a/interface/CMakeLists.txt
+++ b/interface/CMakeLists.txt
@@ -57,9 +57,14 @@
###################### PSA api (S lib) #########################################
-target_sources(tfm_secure_api
- INTERFACE
- $<$<BOOL:${TFM_PSA_API}>:${CMAKE_CURRENT_SOURCE_DIR}/src/tfm_psa_call_pack.c>
+target_sources(tfm_sprt
+ PRIVATE
+ $<$<BOOL:${TFM_PSA_API}>:${CMAKE_CURRENT_SOURCE_DIR}/src/tfm_psa_call_pack.c>
+)
+
+target_compile_definitions(tfm_sprt
+ PUBLIC
+ CONFIG_TFM_BUILDING_SPE=1
)
###################### Export configurations to NS #############################