From 625b8b0bd247496f1f75868c907c0adb1e0db661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20Audun=20Kvamtr=C3=B8?= Date: Tue, 25 May 2021 13:00:50 +0200 Subject: [PATCH] [nrf toup] modules: tfm: Override the TF-M MBEDCRYPTO_PATH MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The TF-M build is passed a path to the mbedtls project directory, however, NCS has its own mbedtls variant. When building with TF-M we use a generator expression to allow setting the path to mbedtls from nrf_security. Signed-off-by: Frank Audun Kvamtrø Signed-off-by: Ioannis Glaropoulos --- modules/trusted-firmware-m/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/trusted-firmware-m/CMakeLists.txt b/modules/trusted-firmware-m/CMakeLists.txt index 3210b92f4309f3..0c57fb61c74196 100644 --- a/modules/trusted-firmware-m/CMakeLists.txt +++ b/modules/trusted-firmware-m/CMakeLists.txt @@ -183,7 +183,7 @@ function(trusted_firmware_build) ${PSA_TEST_ARG} ${TFM_CMAKE_ARGS} -DTFM_TEST_REPO_PATH=${ZEPHYR_TRUSTED_FIRMWARE_M_MODULE_DIR}/tf-m-tests - -DMBEDCRYPTO_PATH=${ZEPHYR_TRUSTED_FIRMWARE_M_MODULE_DIR}/../../crypto/mbedtls/mbedtls + -DMBEDCRYPTO_PATH=$>,$,${ZEPHYR_TRUSTED_FIRMWARE_M_MODULE_DIR}/../../crypto/mbedtls/mbedtls> -DMCUBOOT_PATH=${ZEPHYR_TRUSTED_FIRMWARE_M_MODULE_DIR}/../tfm-mcuboot -DPSA_ARCH_TESTS_PATH=${ZEPHYR_TRUSTED_FIRMWARE_M_MODULE_DIR}/psa-arch-tests -DZEPHYR_BASE=${ZEPHYR_BASE}