Build: Remove Library Model branch in build system
Library Model is deprecated, so remove library model branch in build
system:
- TFM_PSA_API/TFM_LIB_MODEL
- remove tfm_library_config_default.cmake
Signed-off-by: Summer Qin <summer.qin@arm.com>
Change-Id: I644fbdb6041ba07ed35829a412472c7ac467c94d
diff --git a/cmake/install.cmake b/cmake/install.cmake
index 2915ae3..de94702 100644
--- a/cmake/install.cmake
+++ b/cmake/install.cmake
@@ -44,12 +44,10 @@
install(FILES ${CMAKE_BINARY_DIR}/generated/interface/include/config_impl.h
DESTINATION ${INSTALL_INTERFACE_INC_DIR})
-if (TFM_PSA_API)
- install(FILES ${INTERFACE_INC_DIR}/tfm_psa_call_pack.h
- DESTINATION ${INSTALL_INTERFACE_INC_DIR})
- install(FILES ${CMAKE_BINARY_DIR}/generated/interface/include/psa/framework_feature.h
- DESTINATION ${INSTALL_INTERFACE_INC_DIR}/psa)
-endif()
+install(FILES ${INTERFACE_INC_DIR}/tfm_psa_call_pack.h
+ DESTINATION ${INSTALL_INTERFACE_INC_DIR})
+install(FILES ${CMAKE_BINARY_DIR}/generated/interface/include/psa/framework_feature.h
+ DESTINATION ${INSTALL_INTERFACE_INC_DIR}/psa)
if (TFM_PARTITION_NS_AGENT_MAILBOX)
install(FILES ${INTERFACE_INC_DIR}/multi_core/tfm_multi_core_api.h
@@ -60,11 +58,6 @@
DESTINATION ${INSTALL_INTERFACE_INC_DIR})
endif()
-if (NOT TFM_PSA_API)
- install(FILES ${CMAKE_BINARY_DIR}/generated/interface/include/tfm_veneers.h
- DESTINATION ${INSTALL_INTERFACE_INC_DIR}/tfm/veneers)
-endif()
-
if (TFM_PARTITION_PROTECTED_STORAGE)
install(FILES ${INTERFACE_INC_DIR}/psa/protected_storage.h
DESTINATION ${INSTALL_INTERFACE_INC_DIR}/psa)
@@ -147,43 +140,23 @@
endif()
if (TFM_PARTITION_PROTECTED_STORAGE)
- if (TFM_PSA_API)
- install(FILES ${INTERFACE_SRC_DIR}/tfm_ps_ipc_api.c
- DESTINATION ${INSTALL_INTERFACE_SRC_DIR})
- else()
- install(FILES ${INTERFACE_SRC_DIR}/tfm_ps_func_api.c
- DESTINATION ${INSTALL_INTERFACE_SRC_DIR})
- endif()
+ install(FILES ${INTERFACE_SRC_DIR}/tfm_ps_ipc_api.c
+ DESTINATION ${INSTALL_INTERFACE_SRC_DIR})
endif()
if (TFM_PARTITION_INTERNAL_TRUSTED_STORAGE)
- if (TFM_PSA_API)
- install(FILES ${INTERFACE_SRC_DIR}/tfm_its_ipc_api.c
- DESTINATION ${INSTALL_INTERFACE_SRC_DIR})
- else()
- install(FILES ${INTERFACE_SRC_DIR}/tfm_its_func_api.c
- DESTINATION ${INSTALL_INTERFACE_SRC_DIR})
- endif()
+ install(FILES ${INTERFACE_SRC_DIR}/tfm_its_ipc_api.c
+ DESTINATION ${INSTALL_INTERFACE_SRC_DIR})
endif()
if (TFM_PARTITION_CRYPTO)
- if (TFM_PSA_API)
- install(FILES ${INTERFACE_SRC_DIR}/tfm_crypto_ipc_api.c
- DESTINATION ${INSTALL_INTERFACE_SRC_DIR})
- else()
- install(FILES ${INTERFACE_SRC_DIR}/tfm_crypto_func_api.c
- DESTINATION ${INSTALL_INTERFACE_SRC_DIR})
- endif()
+ install(FILES ${INTERFACE_SRC_DIR}/tfm_crypto_ipc_api.c
+ DESTINATION ${INSTALL_INTERFACE_SRC_DIR})
endif()
if (TFM_PARTITION_INITIAL_ATTESTATION)
- if (TFM_PSA_API)
- install(FILES ${INTERFACE_SRC_DIR}/tfm_initial_attestation_ipc_api.c
- DESTINATION ${INSTALL_INTERFACE_SRC_DIR})
- else()
- install(FILES ${INTERFACE_SRC_DIR}/tfm_initial_attestation_func_api.c
- DESTINATION ${INSTALL_INTERFACE_SRC_DIR})
- endif()
+ install(FILES ${INTERFACE_SRC_DIR}/tfm_initial_attestation_ipc_api.c
+ DESTINATION ${INSTALL_INTERFACE_SRC_DIR})
endif()
if(TFM_PARTITION_AUDIT_LOG)
@@ -192,13 +165,8 @@
endif()
if(TFM_PARTITION_PLATFORM)
- if(TFM_PSA_API)
- install(FILES ${INTERFACE_SRC_DIR}/tfm_platform_ipc_api.c
- DESTINATION ${INSTALL_INTERFACE_SRC_DIR})
- else()
- install(FILES ${INTERFACE_SRC_DIR}/tfm_platform_func_api.c
- DESTINATION ${INSTALL_INTERFACE_SRC_DIR})
- endif()
+ install(FILES ${INTERFACE_SRC_DIR}/tfm_platform_ipc_api.c
+ DESTINATION ${INSTALL_INTERFACE_SRC_DIR})
endif()
@@ -231,13 +199,8 @@
endif()
if(TFM_PARTITION_FIRMWARE_UPDATE)
- if(TFM_PSA_API)
- install(FILES ${INTERFACE_SRC_DIR}/tfm_firmware_update_ipc_api.c
- DESTINATION ${INSTALL_INTERFACE_SRC_DIR})
- else()
- install(FILES ${INTERFACE_SRC_DIR}/tfm_firmware_update_func_api.c
- DESTINATION ${INSTALL_INTERFACE_SRC_DIR})
- endif()
+ install(FILES ${INTERFACE_SRC_DIR}/tfm_firmware_update_ipc_api.c
+ DESTINATION ${INSTALL_INTERFACE_SRC_DIR})
endif()
##################### Platform-specific installation ###########################
diff --git a/config/check_config.cmake b/config/check_config.cmake
index 329e22f..e2e4312 100644
--- a/config/check_config.cmake
+++ b/config/check_config.cmake
@@ -23,16 +23,10 @@
set (VALID_ISOLATION_LEVELS 1 2 3)
-tfm_invalid_config(TFM_LIB_MODEL AND NOT CONFIG_TFM_USE_TRUSTZONE)
-tfm_invalid_config(TFM_LIB_MODEL AND TFM_PSA_API)
-tfm_invalid_config(NOT TFM_LIB_MODEL AND NOT TFM_PSA_API)
tfm_invalid_config(NOT TFM_ISOLATION_LEVEL IN_LIST VALID_ISOLATION_LEVELS)
tfm_invalid_config(TFM_ISOLATION_LEVEL EQUAL 3 AND NOT PLATFORM_HAS_ISOLATION_L3_SUPPORT)
-tfm_invalid_config(TFM_ISOLATION_LEVEL GREATER 1 AND TFM_LIB_MODEL)
tfm_invalid_config(TFM_ISOLATION_LEVEL GREATER 1 AND PSA_FRAMEWORK_HAS_MM_IOVEC)
-tfm_invalid_config(TFM_LIB_MODEL AND PSA_FRAMEWORK_HAS_MM_IOVEC)
-tfm_invalid_config(TFM_MULTI_CORE_TOPOLOGY AND TFM_LIB_MODEL)
tfm_invalid_config(TFM_MULTI_CORE_TOPOLOGY AND TFM_NS_MANAGE_NSID)
tfm_invalid_config(TFM_PLAT_SPECIFIC_MULTI_CORE_COMM AND NOT TFM_MULTI_CORE_TOPOLOGY)
@@ -42,7 +36,6 @@
tfm_invalid_config(SUITE STREQUAL "IPC" AND NOT TEST_PSA_API STREQUAL "IPC")
-tfm_invalid_config(TEST_PSA_API STREQUAL "IPC" AND TFM_LIB_MODEL)
tfm_invalid_config(TEST_PSA_API STREQUAL "CRYPTO" AND NOT TFM_PARTITION_CRYPTO)
tfm_invalid_config(TEST_PSA_API STREQUAL "INITIAL_ATTESTATION" AND NOT TFM_PARTITION_INITIAL_ATTESTATION)
tfm_invalid_config(TEST_PSA_API STREQUAL "INTERNAL_TRUSTED_STORAGE" AND NOT TFM_PARTITION_INTERNAL_TRUSTED_STORAGE)
@@ -106,7 +99,8 @@
########################### TF-M audit log #####################################
-tfm_invalid_config(TFM_PARTITION_AUDIT_LOG AND NOT TFM_LIB_MODEL)
+#Audit log is not supported in IPC model, disable it by default
+tfm_invalid_config(TFM_PARTITION_AUDIT_LOG)
########################### TF-M crypto ########################################
diff --git a/config/config_default.cmake b/config/config_default.cmake
index cfe402a..df0d7c3 100755
--- a/config/config_default.cmake
+++ b/config/config_default.cmake
@@ -21,9 +21,6 @@
set(TEST_BL1_1 OFF CACHE BOOL "Whether to build BL1_1 tests")
set(TEST_BL1_2 OFF CACHE BOOL "Whether to build BL1_2 tests")
-# TFM_LIB_MODEL is the only user configuration for Library Model selection.
-# TFM_PSA_API becomes an internal variable. Please do NOT use it in build command line.
-set(TFM_LIB_MODEL OFF CACHE BOOL "Use secure library model instead of PSA API (IPC model)")
set(PLATFORM_HAS_ISOLATION_L3_SUPPORT OFF CACHE BOOL "Platform supports Isolation level 3")
set(TFM_ISOLATION_LEVEL 1 CACHE STRING "Isolation level")
set(PSA_FRAMEWORK_HAS_MM_IOVEC OFF CACHE BOOL "Enable MM-IOVEC")
diff --git a/config/cp_check.cmake b/config/cp_check.cmake
index 57969f6..16d879c 100644
--- a/config/cp_check.cmake
+++ b/config/cp_check.cmake
@@ -9,7 +9,6 @@
tfm_invalid_config(NOT CMAKE_C_COMPILER_ID STREQUAL "GNU" AND (CONFIG_TFM_ENABLE_FP OR CONFIG_TFM_ENABLE_MVE OR CONFIG_TFM_ENABLE_MVE_FP))
tfm_invalid_config((NOT CONFIG_TFM_FP_ARCH) AND (CONFIG_TFM_ENABLE_FP OR CONFIG_TFM_ENABLE_MVE_FP))
-tfm_invalid_config((NOT TFM_PSA_API) AND (CONFIG_TFM_ENABLE_FP OR CONFIG_TFM_ENABLE_MVE OR CONFIG_TFM_ENABLE_MVE_FP))
tfm_invalid_config((NOT CONFIG_TFM_ENABLE_FP AND NOT CONFIG_TFM_ENABLE_MVE AND NOT CONFIG_TFM_ENABLE_MVE_FP) AND CONFIG_TFM_LAZY_STACKING)
tfm_invalid_config((CONFIG_TFM_ENABLE_FP OR CONFIG_TFM_ENABLE_MVE OR CONFIG_TFM_ENABLE_MVE_FP) AND NOT CONFIG_TFM_ENABLE_CP10CP11)
diff --git a/config/profile/profile_small.cmake b/config/profile/profile_small.cmake
index ae59f10..9dfa68e 100644
--- a/config/profile/profile_small.cmake
+++ b/config/profile/profile_small.cmake
@@ -42,12 +42,7 @@
set(TFM_MBEDCRYPTO_CONFIG_PATH "${CMAKE_SOURCE_DIR}/lib/ext/mbedcrypto/mbedcrypto_config/tfm_mbedcrypto_config_profile_small.h" CACHE PATH "Config to use for Mbed Crypto")
set(TFM_MBEDCRYPTO_PSA_CRYPTO_CONFIG_PATH "${CMAKE_SOURCE_DIR}/lib/ext/mbedcrypto/mbedcrypto_config/crypto_config_profile_small.h" CACHE PATH "Config to use psa crypto setting for Mbed Crypto.")
-# If it is specified to select SFN model in build command, enable SFN model in
-# Profile Small.
-# Otherwise, enable Library model in Profile Small by default.
-if (NOT DEFINED CONFIG_TFM_SPM_BACKEND)
- set(TFM_LIB_MODEL ON CACHE BOOL "Use secure library model instead of IPC model")
-elseif (CONFIG_TFM_SPM_BACKEND STREQUAL "SFN")
- set(PSA_FRAMEWORK_HAS_MM_IOVEC ON CACHE BOOL "Enable MM-IOVEC")
- set(CONFIG_TFM_CONN_HANDLE_MAX_NUM 3 CACHE STRING "The maximal number of secure services that are connected or requested at the same time")
-endif()
+# Enable SFN model in Profile Small by default.
+set(CONFIG_TFM_SPM_BACKEND "SFN" CACHE STRING "The SPM backend [IPC, SFN]")
+set(PSA_FRAMEWORK_HAS_MM_IOVEC ON CACHE BOOL "Enable MM-IOVEC")
+set(CONFIG_TFM_CONN_HANDLE_MAX_NUM 3 CACHE STRING "The maximal number of secure services that are connected or requested at the same time")
diff --git a/config/set_config.cmake b/config/set_config.cmake
index 5f3d644..1a6b26e 100644
--- a/config/set_config.cmake
+++ b/config/set_config.cmake
@@ -15,6 +15,11 @@
set(CMAKE_BUILD_TYPE "MinSizeRel" CACHE STRING "Build type: [Debug, Release, RelWithDebInfo, MinSizeRel]" FORCE)
endif()
+if (TFM_LIB_MODEL)
+ message(FATAL_ERROR "Library Model is deprecated, please DO NOT use TFM_LIB_MODEL anymore."
+ "SFN model is a replacement for Library Model. You can use -DCONFIG_TFM_SPM_BACKEND=SFN to select SFN model.")
+endif()
+
# Load extra config
if (TFM_EXTRA_CONFIG_PATH)
include(${TFM_EXTRA_CONFIG_PATH})
@@ -56,9 +61,7 @@
include(${CMAKE_SOURCE_DIR}/config/tfm_build_log_config.cmake)
# Load TF-M model specific default config
-if (TFM_LIB_MODEL)
- include(config/tfm_library_config_default.cmake)
-elseif (CONFIG_TFM_SPM_BACKEND STREQUAL "SFN")
+if (CONFIG_TFM_SPM_BACKEND STREQUAL "SFN")
include(config/tfm_sfn_config_default.cmake)
else() #The default backend is IPC
include(config/tfm_ipc_config_default.cmake)
diff --git a/config/tfm_ipc_config_default.cmake b/config/tfm_ipc_config_default.cmake
index f2ee8ab..29dd236 100644
--- a/config/tfm_ipc_config_default.cmake
+++ b/config/tfm_ipc_config_default.cmake
@@ -9,7 +9,6 @@
############################ Partitions ########################################
-set(TFM_PSA_API ON CACHE BOOL "Use PSA API instead of secure library model")
set(CONFIG_TFM_SPM_BACKEND_IPC ON)
set(CONFIG_TFM_SPM_BACKEND_SFN OFF)
set(CONFIG_TFM_PARTITION_META ON)
diff --git a/config/tfm_library_config_default.cmake b/config/tfm_library_config_default.cmake
deleted file mode 100644
index ef32f54..0000000
--- a/config/tfm_library_config_default.cmake
+++ /dev/null
@@ -1,16 +0,0 @@
-#-------------------------------------------------------------------------------
-# Copyright (c) 2021-2022, Arm Limited. All rights reserved.
-# Copyright (c) 2022 Cypress Semiconductor Corporation (an Infineon company)
-# or an affiliate of Cypress Semiconductor Corporation. All rights reserved.
-#
-# SPDX-License-Identifier: BSD-3-Clause
-#
-#-------------------------------------------------------------------------------
-
-############################ Partitions ########################################
-
-set(TFM_PSA_API OFF CACHE BOOL "Use PSA API instead of secure library model")
-set(TFM_PARTITION_AUDIT_LOG ON CACHE BOOL "Enable Audit Log partition")
-set(CONFIG_TFM_PARTITION_META OFF)
-set(TFM_PARTITION_NS_AGENT_MAILBOX OFF)
-set(TFM_PARTITION_NS_AGENT_TZ OFF)
diff --git a/config/tfm_sfn_config_default.cmake b/config/tfm_sfn_config_default.cmake
index 23db32f..9b2c6d4 100644
--- a/config/tfm_sfn_config_default.cmake
+++ b/config/tfm_sfn_config_default.cmake
@@ -9,7 +9,6 @@
############################ Partitions ########################################
-set(TFM_PSA_API ON CACHE BOOL "Use PSA API instead of secure library model")
set(CONFIG_TFM_DOORBELL_API OFF CACHE BOOL "Enable the doorbell APIs")
set(CONFIG_TFM_SPM_BACKEND_IPC OFF)
set(CONFIG_TFM_SPM_BACKEND_SFN ON)
diff --git a/interface/CMakeLists.txt b/interface/CMakeLists.txt
index b6c96ac..cbbb117 100644
--- a/interface/CMakeLists.txt
+++ b/interface/CMakeLists.txt
@@ -45,7 +45,7 @@
target_compile_definitions(psa_interface
INTERFACE
- $<$<BOOL:${TFM_PSA_API}>:TFM_PSA_API>
+ TFM_PSA_API
$<$<BOOL:${CONFIG_TFM_ENABLE_CTX_MGMT}>:CONFIG_TFM_ENABLE_CTX_MGMT>
$<$<BOOL:${TFM_ISOLATION_LEVEL}>:TFM_LVL=${TFM_ISOLATION_LEVEL}>
$<$<BOOL:${CONFIG_TFM_USE_TRUSTZONE}>:CONFIG_TFM_USE_TRUSTZONE>
@@ -58,7 +58,7 @@
target_sources(tfm_sprt
PRIVATE
- $<$<BOOL:${TFM_PSA_API}>:${CMAKE_CURRENT_SOURCE_DIR}/src/tfm_psa_call_pack.c>
+ ${CMAKE_CURRENT_SOURCE_DIR}/src/tfm_psa_call_pack.c
)
target_compile_definitions(tfm_sprt
diff --git a/platform/ext/target/arm/mps2/an519/CMakeLists.txt b/platform/ext/target/arm/mps2/an519/CMakeLists.txt
index c9ff8d4..eb41316 100644
--- a/platform/ext/target/arm/mps2/an519/CMakeLists.txt
+++ b/platform/ext/target/arm/mps2/an519/CMakeLists.txt
@@ -161,6 +161,5 @@
tfm_hal_isolation.c
tfm_hal_platform.c
faults.c
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:${CMAKE_CURRENT_SOURCE_DIR}/spm_hal.c>
$<$<OR:$<BOOL:${CONFIG_TFM_FLIH_API}>,$<BOOL:${CONFIG_TFM_SLIH_API}>>:${CMAKE_CURRENT_SOURCE_DIR}/tfm_interrupts.c>
)
diff --git a/platform/ext/target/arm/mps2/an521/CMakeLists.txt b/platform/ext/target/arm/mps2/an521/CMakeLists.txt
index 19ba5e6..c14966d 100644
--- a/platform/ext/target/arm/mps2/an521/CMakeLists.txt
+++ b/platform/ext/target/arm/mps2/an521/CMakeLists.txt
@@ -194,6 +194,5 @@
tfm_hal_isolation.c
tfm_hal_platform.c
faults.c
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:${CMAKE_CURRENT_SOURCE_DIR}/spm_hal.c>
$<$<OR:$<BOOL:${CONFIG_TFM_FLIH_API}>,$<BOOL:${CONFIG_TFM_SLIH_API}>>:${CMAKE_CURRENT_SOURCE_DIR}/tfm_interrupts.c>
)
diff --git a/platform/ext/target/arm/mps3/an524/CMakeLists.txt b/platform/ext/target/arm/mps3/an524/CMakeLists.txt
index 6f0143e..e0e85aa 100644
--- a/platform/ext/target/arm/mps3/an524/CMakeLists.txt
+++ b/platform/ext/target/arm/mps3/an524/CMakeLists.txt
@@ -155,6 +155,5 @@
tfm_hal_isolation.c
tfm_hal_platform.c
faults.c
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:${CMAKE_CURRENT_SOURCE_DIR}/spm_hal.c>
$<$<OR:$<BOOL:${CONFIG_TFM_FLIH_API}>,$<BOOL:${CONFIG_TFM_SLIH_API}>>:${CMAKE_CURRENT_SOURCE_DIR}/tfm_interrupts.c>
)
diff --git a/platform/ext/target/arm/mps3/an547/CMakeLists.txt b/platform/ext/target/arm/mps3/an547/CMakeLists.txt
index ba07649..a34f1e2 100644
--- a/platform/ext/target/arm/mps3/an547/CMakeLists.txt
+++ b/platform/ext/target/arm/mps3/an547/CMakeLists.txt
@@ -177,6 +177,5 @@
tfm_hal_isolation.c
tfm_hal_platform.c
faults.c
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:${CMAKE_CURRENT_SOURCE_DIR}/spm_hal.c>
$<$<OR:$<BOOL:${CONFIG_TFM_FLIH_API}>,$<BOOL:${CONFIG_TFM_SLIH_API}>>:${CMAKE_CURRENT_SOURCE_DIR}/tfm_interrupts.c>
)
diff --git a/platform/ext/target/arm/mps3/an552/CMakeLists.txt b/platform/ext/target/arm/mps3/an552/CMakeLists.txt
index 78832a2..e0f778d 100644
--- a/platform/ext/target/arm/mps3/an552/CMakeLists.txt
+++ b/platform/ext/target/arm/mps3/an552/CMakeLists.txt
@@ -200,6 +200,5 @@
tfm_hal_isolation.c
tfm_hal_platform.c
faults.c
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:${CMAKE_CURRENT_SOURCE_DIR}/spm_hal.c>
- $<$<BOOL:${TFM_PSA_API}>:${CMAKE_CURRENT_SOURCE_DIR}/tfm_interrupts.c>
+ ${CMAKE_CURRENT_SOURCE_DIR}/tfm_interrupts.c
)
diff --git a/platform/ext/target/arm/mps3/corstone310_fvp/CMakeLists.txt b/platform/ext/target/arm/mps3/corstone310_fvp/CMakeLists.txt
index d4833dd..3bf6792 100644
--- a/platform/ext/target/arm/mps3/corstone310_fvp/CMakeLists.txt
+++ b/platform/ext/target/arm/mps3/corstone310_fvp/CMakeLists.txt
@@ -196,6 +196,5 @@
tfm_hal_isolation.c
tfm_hal_platform.c
faults.c
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:${CMAKE_CURRENT_SOURCE_DIR}/spm_hal.c>
$<$<OR:$<BOOL:${CONFIG_TFM_FLIH_API}>,$<BOOL:${CONFIG_TFM_SLIH_API}>>:${CMAKE_CURRENT_SOURCE_DIR}/tfm_interrupts.c>
)
diff --git a/platform/ext/target/arm/musca_b1/CMakeLists.txt b/platform/ext/target/arm/musca_b1/CMakeLists.txt
index 3d09194..f56adb3 100644
--- a/platform/ext/target/arm/musca_b1/CMakeLists.txt
+++ b/platform/ext/target/arm/musca_b1/CMakeLists.txt
@@ -191,6 +191,5 @@
tfm_hal_isolation.c
tfm_hal_platform.c
faults.c
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:${CMAKE_CURRENT_SOURCE_DIR}/spm_hal.c>
$<$<OR:$<BOOL:${CONFIG_TFM_FLIH_API}>,$<BOOL:${CONFIG_TFM_SLIH_API}>>:${CMAKE_CURRENT_SOURCE_DIR}/tfm_interrupts.c>
)
diff --git a/platform/ext/target/arm/musca_s1/CMakeLists.txt b/platform/ext/target/arm/musca_s1/CMakeLists.txt
index 36e3ddc..2255ac4 100644
--- a/platform/ext/target/arm/musca_s1/CMakeLists.txt
+++ b/platform/ext/target/arm/musca_s1/CMakeLists.txt
@@ -193,6 +193,5 @@
tfm_hal_isolation.c
tfm_hal_platform.c
faults.c
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:${CMAKE_CURRENT_SOURCE_DIR}/spm_hal.c>
- $<$<BOOL:${TFM_PSA_API}>:${CMAKE_CURRENT_SOURCE_DIR}/tfm_interrupts.c>
+ ${CMAKE_CURRENT_SOURCE_DIR}/tfm_interrupts.c
)
diff --git a/platform/ext/target/arm/rss/CMakeLists.txt b/platform/ext/target/arm/rss/CMakeLists.txt
index 2fd0fb7..733d591 100644
--- a/platform/ext/target/arm/rss/CMakeLists.txt
+++ b/platform/ext/target/arm/rss/CMakeLists.txt
@@ -279,5 +279,4 @@
tfm_hal_platform.c
tfm_interrupts.c
faults.c
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:${CMAKE_CURRENT_SOURCE_DIR}/spm_hal.c>
)
diff --git a/platform/ext/target/lairdconnectivity/common/bl5340/CMakeLists.txt b/platform/ext/target/lairdconnectivity/common/bl5340/CMakeLists.txt
index 6f4e1a7..2b1531f 100644
--- a/platform/ext/target/lairdconnectivity/common/bl5340/CMakeLists.txt
+++ b/platform/ext/target/lairdconnectivity/common/bl5340/CMakeLists.txt
@@ -106,5 +106,5 @@
target_sources(tfm_spm
PRIVATE
target_cfg.c
- $<$<BOOL:${TFM_PSA_API}>:${CMAKE_CURRENT_SOURCE_DIR}/${NRF_FOLDER_PATH}/tfm_interrupts.c>
+ ${CMAKE_CURRENT_SOURCE_DIR}/${NRF_FOLDER_PATH}/tfm_interrupts.c
)
diff --git a/platform/ext/target/lairdconnectivity/common/core/CMakeLists.txt b/platform/ext/target/lairdconnectivity/common/core/CMakeLists.txt
index 3c56e62..b6da625 100644
--- a/platform/ext/target/lairdconnectivity/common/core/CMakeLists.txt
+++ b/platform/ext/target/lairdconnectivity/common/core/CMakeLists.txt
@@ -166,7 +166,6 @@
target_sources(tfm_spm
PRIVATE
${NRF_FOLDER_PATH}/faults.c
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:${NRF_FOLDER_PATH}/spm_hal.c>
${NRF_FOLDER_PATH}/tfm_hal_isolation.c
${NRF_FOLDER_PATH}/tfm_hal_platform_common.c
)
diff --git a/platform/ext/target/nordic_nrf/common/core/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/core/CMakeLists.txt
index 38ee1c0..394f2a4 100644
--- a/platform/ext/target/nordic_nrf/common/core/CMakeLists.txt
+++ b/platform/ext/target/nordic_nrf/common/core/CMakeLists.txt
@@ -184,5 +184,4 @@
tfm_hal_isolation.c
tfm_hal_platform_common.c
faults.c
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:${CMAKE_CURRENT_SOURCE_DIR}/spm_hal.c>
)
diff --git a/platform/ext/target/nuvoton/m2351/CMakeLists.txt b/platform/ext/target/nuvoton/m2351/CMakeLists.txt
index fb24bae..2b39dbf 100644
--- a/platform/ext/target/nuvoton/m2351/CMakeLists.txt
+++ b/platform/ext/target/nuvoton/m2351/CMakeLists.txt
@@ -171,5 +171,4 @@
../common/tfm_hal_isolation.c
../common/tfm_hal_platform.c
../common/faults.c
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:${CMAKE_CURRENT_SOURCE_DIR}/../common/spm_hal.c>
)
diff --git a/platform/ext/target/nuvoton/m2354/CMakeLists.txt b/platform/ext/target/nuvoton/m2354/CMakeLists.txt
index 77946bb..8b4988b 100644
--- a/platform/ext/target/nuvoton/m2354/CMakeLists.txt
+++ b/platform/ext/target/nuvoton/m2354/CMakeLists.txt
@@ -173,5 +173,4 @@
../common/tfm_hal_isolation.c
../common/tfm_hal_platform.c
../common/faults.c
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:${CMAKE_CURRENT_SOURCE_DIR}/../common/spm_hal.c>
)
diff --git a/platform/ext/target/nxp/lpcxpresso55s69/CMakeLists.txt b/platform/ext/target/nxp/lpcxpresso55s69/CMakeLists.txt
index c26d545..9c91925 100644
--- a/platform/ext/target/nxp/lpcxpresso55s69/CMakeLists.txt
+++ b/platform/ext/target/nxp/lpcxpresso55s69/CMakeLists.txt
@@ -271,5 +271,4 @@
../common/faults.c
../common/tfm_hal_isolation.c
../common/tfm_hal_platform.c
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:${CMAKE_CURRENT_SOURCE_DIR}/../common/spm_hal.c>
)
diff --git a/platform/ext/target/stm/common/stm32l5xx/CMakeLists.txt b/platform/ext/target/stm/common/stm32l5xx/CMakeLists.txt
index 532f3ed..7fe1705 100644
--- a/platform/ext/target/stm/common/stm32l5xx/CMakeLists.txt
+++ b/platform/ext/target/stm/common/stm32l5xx/CMakeLists.txt
@@ -203,7 +203,6 @@
target_sources(tfm_spm
PRIVATE
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:${CMAKE_CURRENT_SOURCE_DIR}/secure/spm_hal.c>
${CMAKE_CURRENT_SOURCE_DIR}/secure/target_cfg.c
${CMAKE_CURRENT_SOURCE_DIR}/secure/tfm_hal_isolation.c
${CMAKE_CURRENT_SOURCE_DIR}/secure/tfm_hal_platform.c
diff --git a/platform/ext/target/stm/common/stm32u5xx/CMakeLists.txt b/platform/ext/target/stm/common/stm32u5xx/CMakeLists.txt
index 5453100..df056bb 100644
--- a/platform/ext/target/stm/common/stm32u5xx/CMakeLists.txt
+++ b/platform/ext/target/stm/common/stm32u5xx/CMakeLists.txt
@@ -219,7 +219,6 @@
target_sources(tfm_spm
PRIVATE
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:${CMAKE_CURRENT_SOURCE_DIR}/secure/spm_hal.c>
${CMAKE_CURRENT_SOURCE_DIR}/secure/target_cfg.c
${CMAKE_CURRENT_SOURCE_DIR}/secure/tfm_hal_isolation.c
${CMAKE_CURRENT_SOURCE_DIR}/secure/tfm_hal_platform.c
diff --git a/secure_fw/partitions/crypto/CMakeLists.txt b/secure_fw/partitions/crypto/CMakeLists.txt
index eed5992..1a51235 100644
--- a/secure_fw/partitions/crypto/CMakeLists.txt
+++ b/secure_fw/partitions/crypto/CMakeLists.txt
@@ -48,13 +48,11 @@
# The generated sources
target_sources(tfm_psa_rot_partition_crypto
PRIVATE
- $<$<BOOL:${TFM_PSA_API}>:
- ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/crypto/auto_generated/intermedia_tfm_crypto.c>
+ ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/crypto/auto_generated/intermedia_tfm_crypto.c
)
target_sources(tfm_partitions
INTERFACE
- $<$<BOOL:${TFM_PSA_API}>:
- ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/crypto/auto_generated/load_info_tfm_crypto.c>
+ ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/crypto/auto_generated/load_info_tfm_crypto.c
)
# Set include directory
@@ -84,7 +82,7 @@
PRIVATE
$<$<BOOL:${CRYPTO_ENGINE_BUF_SIZE}>:TFM_CRYPTO_ENGINE_BUF_SIZE=${CRYPTO_ENGINE_BUF_SIZE}>
$<$<BOOL:${CRYPTO_CONC_OPER_NUM}>:TFM_CRYPTO_CONC_OPER_NUM=${CRYPTO_CONC_OPER_NUM}>
- $<$<AND:$<BOOL:${TFM_PSA_API}>,$<BOOL:${CRYPTO_IOVEC_BUFFER_SIZE}>>:TFM_CRYPTO_IOVEC_BUFFER_SIZE=${CRYPTO_IOVEC_BUFFER_SIZE}>
+ $<$<BOOL:${CRYPTO_IOVEC_BUFFER_SIZE}>:TFM_CRYPTO_IOVEC_BUFFER_SIZE=${CRYPTO_IOVEC_BUFFER_SIZE}>
$<$<BOOL:${CRYPTO_SINGLE_PART_FUNCS_DISABLED}>:CRYPTO_SINGLE_PART_FUNCS_DISABLED>
)
diff --git a/secure_fw/partitions/firmware_update/CMakeLists.txt b/secure_fw/partitions/firmware_update/CMakeLists.txt
index 18f066c..07e33d2 100644
--- a/secure_fw/partitions/firmware_update/CMakeLists.txt
+++ b/secure_fw/partitions/firmware_update/CMakeLists.txt
@@ -30,13 +30,11 @@
PRIVATE
tfm_fwu_req_mngr.c
tfm_fwu.c
- $<$<BOOL:${TFM_PSA_API}>:
- ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/firmware_update/auto_generated/intermedia_tfm_firmware_update.c>
+ ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/firmware_update/auto_generated/intermedia_tfm_firmware_update.c
)
target_sources(tfm_partitions
INTERFACE
- $<$<BOOL:${TFM_PSA_API}>:
- ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/firmware_update/auto_generated/load_info_tfm_firmware_update.c>
+ ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/firmware_update/auto_generated/load_info_tfm_firmware_update.c
)
# The bootloader specific configuration.
@@ -53,7 +51,7 @@
target_compile_definitions(tfm_psa_rot_partition_fwu
PRIVATE
- $<$<BOOL:${TFM_PSA_API}>:TFM_PSA_API>
+ TFM_PSA_API
$<$<BOOL:${DEFAULT_MCUBOOT_FLASH_MAP}>:DEFAULT_MCUBOOT_FLASH_MAP>
$<$<BOOL:${TFM_FWU_BUF_SIZE}>:TFM_FWU_BUF_SIZE=${TFM_FWU_BUF_SIZE}>
)
diff --git a/secure_fw/partitions/initial_attestation/CMakeLists.txt b/secure_fw/partitions/initial_attestation/CMakeLists.txt
index 98c7223..94af497 100644
--- a/secure_fw/partitions/initial_attestation/CMakeLists.txt
+++ b/secure_fw/partitions/initial_attestation/CMakeLists.txt
@@ -27,13 +27,11 @@
# The generated sources
target_sources(tfm_psa_rot_partition_attestation
PRIVATE
- $<$<BOOL:${TFM_PSA_API}>:
- ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/initial_attestation/auto_generated/intermedia_tfm_initial_attestation.c>
+ ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/initial_attestation/auto_generated/intermedia_tfm_initial_attestation.c
)
target_sources(tfm_partitions
INTERFACE
- $<$<BOOL:${TFM_PSA_API}>:
- ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/initial_attestation/auto_generated/load_info_tfm_initial_attestation.c>
+ ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/initial_attestation/auto_generated/load_info_tfm_initial_attestation.c
)
# Set include directory
diff --git a/secure_fw/partitions/internal_trusted_storage/CMakeLists.txt b/secure_fw/partitions/internal_trusted_storage/CMakeLists.txt
index cbda16f..d00ef48 100644
--- a/secure_fw/partitions/internal_trusted_storage/CMakeLists.txt
+++ b/secure_fw/partitions/internal_trusted_storage/CMakeLists.txt
@@ -44,13 +44,11 @@
# The generated sources
target_sources(tfm_psa_rot_partition_its
PRIVATE
- $<$<BOOL:${TFM_PSA_API}>:
- ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/internal_trusted_storage/auto_generated/intermedia_tfm_internal_trusted_storage.c>
+ ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/internal_trusted_storage/auto_generated/intermedia_tfm_internal_trusted_storage.c
)
target_sources(tfm_partitions
INTERFACE
- $<$<BOOL:${TFM_PSA_API}>:
- ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/internal_trusted_storage/auto_generated/load_info_tfm_internal_trusted_storage.c>
+ ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/internal_trusted_storage/auto_generated/load_info_tfm_internal_trusted_storage.c
)
target_link_libraries(tfm_psa_rot_partition_its
diff --git a/secure_fw/partitions/platform/CMakeLists.txt b/secure_fw/partitions/platform/CMakeLists.txt
index 397c101..9b15571 100644
--- a/secure_fw/partitions/platform/CMakeLists.txt
+++ b/secure_fw/partitions/platform/CMakeLists.txt
@@ -19,13 +19,11 @@
# The generated sources
target_sources(tfm_psa_rot_partition_platform
PRIVATE
- $<$<BOOL:${TFM_PSA_API}>:
- ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/platform/auto_generated/intermedia_tfm_platform.c>
+ ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/platform/auto_generated/intermedia_tfm_platform.c
)
target_sources(tfm_partitions
INTERFACE
- $<$<BOOL:${TFM_PSA_API}>:
- ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/platform/auto_generated/load_info_tfm_platform.c>
+ ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/platform/auto_generated/load_info_tfm_platform.c
)
# Set include directory
diff --git a/secure_fw/partitions/protected_storage/CMakeLists.txt b/secure_fw/partitions/protected_storage/CMakeLists.txt
index ff56c15..e83f10c 100644
--- a/secure_fw/partitions/protected_storage/CMakeLists.txt
+++ b/secure_fw/partitions/protected_storage/CMakeLists.txt
@@ -42,13 +42,11 @@
# The generated sources
target_sources(tfm_app_rot_partition_ps
PRIVATE
- $<$<BOOL:${TFM_PSA_API}>:
- ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/protected_storage/auto_generated/intermedia_tfm_protected_storage.c>
+ ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/protected_storage/auto_generated/intermedia_tfm_protected_storage.c
)
target_sources(tfm_partitions
INTERFACE
- $<$<BOOL:${TFM_PSA_API}>:
- ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/protected_storage/auto_generated/load_info_tfm_protected_storage.c>
+ ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/protected_storage/auto_generated/load_info_tfm_protected_storage.c
)
target_link_libraries(tfm_app_rot_partition_ps
diff --git a/secure_fw/spm/CMakeLists.txt b/secure_fw/spm/CMakeLists.txt
index ccde423..5361d97 100755
--- a/secure_fw/spm/CMakeLists.txt
+++ b/secure_fw/spm/CMakeLists.txt
@@ -23,17 +23,14 @@
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/include
- $<$<BOOL:${TFM_PSA_API}>:${CMAKE_CURRENT_SOURCE_DIR}/cmsis_psa>
- $<$<BOOL:${TFM_PSA_API}>:${CMAKE_CURRENT_SOURCE_DIR}/cmsis_psa/include>
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:${CMAKE_CURRENT_SOURCE_DIR}/cmsis_func>
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:${CMAKE_CURRENT_SOURCE_DIR}/cmsis_func/include>
+ ${CMAKE_CURRENT_SOURCE_DIR}/cmsis_psa
+ ${CMAKE_CURRENT_SOURCE_DIR}/cmsis_psa/include
PRIVATE
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/secure_fw/include
${CMAKE_BINARY_DIR}/generated
${CMAKE_BINARY_DIR}/generated/secure_fw/spm/include
- $<$<BOOL:${TFM_PSA_API}>:${CMAKE_BINARY_DIR}/generated/secure_fw/spm/cmsis_psa>
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:${CMAKE_BINARY_DIR}/generated/secure_fw/spm/cmsis_func>
+ ${CMAKE_BINARY_DIR}/generated/secure_fw/spm/cmsis_psa
)
target_sources(tfm_spm
@@ -41,44 +38,37 @@
ffm/tfm_boot_data.c
ffm/utilities.c
$<$<NOT:$<STREQUAL:${TFM_SPM_LOG_LEVEL},TFM_SPM_LOG_LEVEL_SILENCE>>:ffm/spm_log.c>
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:ffm/tfm_core_mem_check.c>
- $<$<BOOL:${TFM_PSA_API}>:cmsis_psa/arch/tfm_arch.c>
- $<$<BOOL:${TFM_PSA_API}>:cmsis_psa/main.c>
- $<$<BOOL:${TFM_PSA_API}>:cmsis_psa/spm_ipc.c>
+ cmsis_psa/arch/tfm_arch.c
+ cmsis_psa/main.c
+ cmsis_psa/spm_ipc.c
$<$<BOOL:${CONFIG_TFM_PSA_API_CROSS_CALL}>:cmsis_psa/spm_cross_call.c>
- $<$<BOOL:${TFM_PSA_API}>:cmsis_psa/static_loader.c>
- $<$<BOOL:${TFM_PSA_API}>:ffm/psa_api.c>
+ cmsis_psa/static_loader.c
+ ffm/psa_api.c
$<$<BOOL:${CONFIG_TFM_SPM_BACKEND_IPC}>:ffm/backend_ipc.c>
$<$<BOOL:${CONFIG_TFM_SPM_BACKEND_SFN}>:ffm/backend_sfn.c>
$<$<OR:$<BOOL:${CONFIG_TFM_FLIH_API}>,$<BOOL:${CONFIG_TFM_SLIH_API}>>:ffm/interrupt.c>
$<$<BOOL:${CONFIG_TFM_STACK_WATERMARKS}>:ffm/stack_watermark.c>
- $<$<BOOL:${TFM_PSA_API}>:cmsis_psa/tfm_core_svcalls_ipc.c>
- $<$<BOOL:${TFM_PSA_API}>:cmsis_psa/tfm_pools.c>
+ cmsis_psa/tfm_core_svcalls_ipc.c
+ cmsis_psa/tfm_pools.c
$<$<BOOL:${CONFIG_TFM_SPM_BACKEND_IPC}>:cmsis_psa/thread.c>
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:cmsis_func/main.c>
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:cmsis_func/arch.c>
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:cmsis_func/spm_func.c>
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:cmsis_func/tfm_core_svcalls_func.c>
$<$<BOOL:${TFM_NS_MANAGE_NSID}>:ns_client_ext/tfm_ns_ctx.c>
ns_client_ext/tfm_spm_ns_ctx.c
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:cmsis_func/tfm_secure_api.c>
#TODO add other arches
- $<$<AND:$<BOOL:${TFM_PSA_API}>,$<STREQUAL:${TFM_SYSTEM_ARCHITECTURE},armv8.1-m.main>>:cmsis_psa/arch/tfm_arch_v8m_main.c>
- $<$<AND:$<BOOL:${TFM_PSA_API}>,$<STREQUAL:${TFM_SYSTEM_ARCHITECTURE},armv8-m.base>>:cmsis_psa/arch/tfm_arch_v8m_base.c>
- $<$<AND:$<BOOL:${TFM_PSA_API}>,$<STREQUAL:${TFM_SYSTEM_ARCHITECTURE},armv8-m.main>>:cmsis_psa/arch/tfm_arch_v8m_main.c>
- $<$<AND:$<BOOL:${TFM_PSA_API}>,$<STREQUAL:${TFM_SYSTEM_ARCHITECTURE},armv6-m>>:cmsis_psa/arch/tfm_arch_v6m_v7m.c>
- $<$<AND:$<BOOL:${TFM_PSA_API}>,$<STREQUAL:${TFM_SYSTEM_ARCHITECTURE},armv7-m>>:cmsis_psa/arch/tfm_arch_v6m_v7m.c>
+ $<$<STREQUAL:${TFM_SYSTEM_ARCHITECTURE},armv8.1-m.main>:cmsis_psa/arch/tfm_arch_v8m_main.c>
+ $<$<STREQUAL:${TFM_SYSTEM_ARCHITECTURE},armv8-m.base>:cmsis_psa/arch/tfm_arch_v8m_base.c>
+ $<$<STREQUAL:${TFM_SYSTEM_ARCHITECTURE},armv8-m.main>:cmsis_psa/arch/tfm_arch_v8m_main.c>
+ $<$<STREQUAL:${TFM_SYSTEM_ARCHITECTURE},armv6-m>:cmsis_psa/arch/tfm_arch_v6m_v7m.c>
+ $<$<STREQUAL:${TFM_SYSTEM_ARCHITECTURE},armv7-m>:cmsis_psa/arch/tfm_arch_v6m_v7m.c>
${CMAKE_SOURCE_DIR}/platform/ext/common/tfm_hal_nvic.c
)
target_include_directories(tfm_spm_defs
INTERFACE
- $<$<BOOL:${TFM_PSA_API}>:${CMAKE_CURRENT_SOURCE_DIR}/cmsis_psa>
+ ${CMAKE_CURRENT_SOURCE_DIR}/cmsis_psa
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/boot>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/interface>
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:${CMAKE_CURRENT_SOURCE_DIR}/cmsis_func/include>
- $<$<BOOL:${TFM_PSA_API}>:${CMAKE_CURRENT_SOURCE_DIR}/cmsis_psa/arch>
+ ${CMAKE_CURRENT_SOURCE_DIR}/cmsis_psa/arch
)
target_link_libraries(tfm_spm
@@ -101,7 +91,7 @@
$<$<AND:$<BOOL:${BL2}>,$<BOOL:${CONFIG_TFM_BOOT_STORE_MEASUREMENTS}>>:BOOT_DATA_AVAILABLE>
$<$<BOOL:${CONFIG_TFM_HALT_ON_CORE_PANIC}>:CONFIG_TFM_HALT_ON_CORE_PANIC>
$<$<BOOL:${TFM_NS_MANAGE_NSID}>:TFM_NS_MANAGE_NSID>
- $<$<BOOL:${TFM_PSA_API}>:CONFIG_TFM_CONN_HANDLE_MAX_NUM=${CONFIG_TFM_CONN_HANDLE_MAX_NUM}>
+ CONFIG_TFM_CONN_HANDLE_MAX_NUM=${CONFIG_TFM_CONN_HANDLE_MAX_NUM}
$<$<STREQUAL:${CONFIG_TFM_FLOAT_ABI},hard>:CONFIG_TFM_FLOAT_ABI=2>
$<$<STREQUAL:${CONFIG_TFM_FLOAT_ABI},soft>:CONFIG_TFM_FLOAT_ABI=0>
$<$<BOOL:${CONFIG_TFM_DOORBELL_API}>:CONFIG_TFM_DOORBELL_API=1>
@@ -145,7 +135,6 @@
# instead this single file is added to the tfm_s target.
target_sources(tfm_s
PRIVATE
- $<$<NOT:$<BOOL:${TFM_PSA_API}>>:${CMAKE_BINARY_DIR}/generated/secure_fw/spm/cmsis_func/tfm_veneers.c>
$<$<BOOL:${TFM_NS_MANAGE_NSID}>:${CMAKE_CURRENT_SOURCE_DIR}/ns_client_ext/tfm_ns_client_ext.c>
)
endif()
diff --git a/tools/config_impl.cmake.template b/tools/config_impl.cmake.template
index 9fb0e7c..acee982 100644
--- a/tools/config_impl.cmake.template
+++ b/tools/config_impl.cmake.template
@@ -8,15 +8,13 @@
########{{utilities.donotedit_warning}}########
-if(TFM_PSA_API)
- 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_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.")
- endif()
-
- set(CONFIG_TFM_FLIH_API {{config_impl['CONFIG_TFM_FLIH_API']}} PARENT_SCOPE)
- set(CONFIG_TFM_SLIH_API {{config_impl['CONFIG_TFM_SLIH_API']}} 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.")
endif()
+
+set(CONFIG_TFM_FLIH_API {{config_impl['CONFIG_TFM_FLIH_API']}} PARENT_SCOPE)
+set(CONFIG_TFM_SLIH_API {{config_impl['CONFIG_TFM_SLIH_API']}} PARENT_SCOPE)