Interface: Split PSA NS APIs for connection based services only
This patch splits PSA NS APIs which are only for connection based
services into a single file.
CONFIG_TFM_CONNECTION_BASED_SERVICE_API is also defined in CMake so that
tfm_psa_ns_connection_api.c will be compiled and installed only when
connection based service exists.
Signed-off-by: Xinyu Zhang <xinyu.zhang@arm.com>
Change-Id: I4656e71d762b4524f113ff8830f072848c651493
diff --git a/tools/config_impl.cmake.template b/tools/config_impl.cmake.template
index acee982..899a132 100644
--- a/tools/config_impl.cmake.template
+++ b/tools/config_impl.cmake.template
@@ -8,9 +8,11 @@
########{{utilities.donotedit_warning}}########
-set(CONFIG_TFM_PSA_API_SFN_CALL {{config_impl['CONFIG_TFM_PSA_API_SFN_CALL']}} PARENT_SCOPE)
-set(CONFIG_TFM_PSA_API_CROSS_CALL {{config_impl['CONFIG_TFM_PSA_API_CROSS_CALL']}} PARENT_SCOPE)
-set(CONFIG_TFM_PSA_API_SUPERVISOR_CALL {{config_impl['CONFIG_TFM_PSA_API_SUPERVISOR_CALL']}} PARENT_SCOPE)
+set(CONFIG_TFM_CONNECTION_BASED_SERVICE_API {{config_impl['CONFIG_TFM_CONNECTION_BASED_SERVICE_API']}} PARENT_SCOPE)
+
+set(CONFIG_TFM_PSA_API_SFN_CALL {{config_impl['CONFIG_TFM_PSA_API_SFN_CALL']}} PARENT_SCOPE)
+set(CONFIG_TFM_PSA_API_CROSS_CALL {{config_impl['CONFIG_TFM_PSA_API_CROSS_CALL']}} PARENT_SCOPE)
+set(CONFIG_TFM_PSA_API_SUPERVISOR_CALL {{config_impl['CONFIG_TFM_PSA_API_SUPERVISOR_CALL']}} PARENT_SCOPE)
if((CONFIG_TFM_FLOAT_ABI GREATER 0) AND CONFIG_TFM_SPM_BACKEND_SFN)
message(FATAL_ERROR "FP is not supported for SFN model.")