modules: tf-m: fix tfm_api's configuration of MbedTLS

The configuration file was not passed down to tfm_api, which
made the compilation of (at least) interface/src/tfm_crypto_api.c
fail when updating MbedTLS to 3.6.0.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
This commit is contained in:
Tomi Fontanilles 2024-04-16 15:42:47 +03:00 committed by Flavio Ceolin
commit 94404589d4

View file

@ -366,6 +366,11 @@ if (CONFIG_BUILD_WITH_TFM)
target_include_directories(tfm_api PRIVATE
${TFM_INTERFACE_INCLUDE_DIR}
${TFM_INTERFACE_INCLUDE_DIR}/crypto_keys
${ZEPHYR_BASE}/modules/mbedtls/configs
)
# Pass down the MbedTLS configuration file to use.
target_compile_definitions(tfm_api PRIVATE
MBEDTLS_CONFIG_FILE="${CONFIG_MBEDTLS_CFG_FILE}"
)
zephyr_library_link_libraries(