Fix passing MbedTLS config in env-test deployment
The baremetal-tests suite of the env-test deployment defines the CMake
MBEDTLS_USER_CONFIG_FILE option but doesn't pass it to the MbedTLS
build as a C macro. Therefore whatever config is set for MbedTLS doesn't
actually have any effect on the build. Fix this by adding the missing
macro definition.
Signed-off-by: Balint Dobszay <balint.dobszay@arm.com>
Change-Id: I74bfaf37c8b219c4ac80dc1cd7dfba5d6182d6bc
diff --git a/deployments/env-test/suites/baremetal-tests.cmake b/deployments/env-test/suites/baremetal-tests.cmake
index 98588a7..7c08e11 100644
--- a/deployments/env-test/suites/baremetal-tests.cmake
+++ b/deployments/env-test/suites/baremetal-tests.cmake
@@ -44,6 +44,12 @@
include(${TS_ROOT}/external/MbedTLS/MbedTLS.cmake)
target_link_libraries(env-test PRIVATE MbedTLS::mbedcrypto)
+# Provide the config path to mbedtls
+target_compile_definitions(env-test
+ PRIVATE
+ MBEDTLS_USER_CONFIG_FILE="${MBEDTLS_USER_CONFIG_FILE}"
+)
+
#-------------------------------------------------------------------------------
# This test suite depends on platform specific drivers
#