From a3c9a9bb9e450153c0cb83b61e9414e99c8d8faa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B8e?= Date: Fri, 1 Mar 2024 16:10:51 +0100 Subject: [PATCH] [nrf toup] tfm: experiment with not sending these modules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tfm: experiment with not sending these modules Signed-off-by: Sebastian Bøe --- modules/trusted-firmware-m/CMakeLists.txt | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/modules/trusted-firmware-m/CMakeLists.txt b/modules/trusted-firmware-m/CMakeLists.txt index 2bba4a45c6d..0c3b4594e33 100644 --- a/modules/trusted-firmware-m/CMakeLists.txt +++ b/modules/trusted-firmware-m/CMakeLists.txt @@ -16,7 +16,8 @@ set(TFM_VALID_PARTITIONS ) # List of all crypto modules that can be enabled/disabled -# Corresponds to the *_MODULE_DISABLED configs in 'trusted-firmware-m/secure_fw/partitions/crypto/Kconfig' +# Corresponds to the *_MODULE_ENABLED configs in +# 'trusted-firmware-m/secure_fw/partitions/crypto/Kconfig.comp' set(TFM_CRYPTO_MODULES CRYPTO_RNG_MODULE CRYPTO_KEY_MODULE @@ -148,14 +149,6 @@ if (CONFIG_BUILD_WITH_TFM) list(APPEND TFM_CMAKE_ARGS -D${partition}=${val}) endforeach() - # Enable TFM crypto modules as specified in Kconfig - foreach(module ${TFM_CRYPTO_MODULES}) - if (CONFIG_TFM_${module}_ENABLED) - # list(APPEND TFM_ENABLED_CRYPTO_MODULES_ARG ${module}) - list(APPEND TFM_CMAKE_ARGS -D${module}_ENABLED=True) - endif() - endforeach() - set(TFM_BINARY_DIR ${CMAKE_BINARY_DIR}/tfm) set(PSA_ARCH_TESTS_PATH ${ZEPHYR_CURRENT_MODULE_DIR}/../psa-arch-tests)