From e06e58313a4a7e994d0e6406c4a20ee3e8c8d8a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20Audun=20Kvamtr=C3=B8?= Date: Fri, 27 Sep 2024 00:42:08 +0200 Subject: [PATCH] tfm: Propagate PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -Fixes issues booting TF-M Signed-off-by: Frank Audun Kvamtrø --- modules/trusted-firmware-m/tfm_boards/external_core.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/trusted-firmware-m/tfm_boards/external_core.cmake b/modules/trusted-firmware-m/tfm_boards/external_core.cmake index 38e8d4bf80d2..20a7b269a448 100644 --- a/modules/trusted-firmware-m/tfm_boards/external_core.cmake +++ b/modules/trusted-firmware-m/tfm_boards/external_core.cmake @@ -91,6 +91,12 @@ if(TARGET psa_crypto_library_config) ${OBERON_PSA_CORE_PATH}/include ${NRF_DIR}/include/tfm ) + + target_compile_definitions(psa_crypto_library_config + INTERFACE + MBEDTLS_PSA_CRYPTO_DRIVERS + $<$:MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY> + ) endif() if(TARGET tfm_psa_rot_partition_crypto)