modules: tf-m: fix unused CMake variable warning
Define and pass down PSA_ARCH_TESTS_PATH only in the sample that needs it (tfm_psa_test). Otherwise, it provokes a CMake warning because the variable does not get used in TF-M. Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
This commit is contained in:
parent
a8ec15294f
commit
925d2ca052
2 changed files with 2 additions and 5 deletions
|
@ -135,8 +135,6 @@ if (CONFIG_BUILD_WITH_TFM)
|
|||
|
||||
set(TFM_BINARY_DIR ${CMAKE_BINARY_DIR}/tfm)
|
||||
|
||||
set(PSA_ARCH_TESTS_PATH ${ZEPHYR_CURRENT_MODULE_DIR}/../psa-arch-tests)
|
||||
|
||||
set(TFM_INTERFACE_SOURCE_DIR ${TFM_BINARY_DIR}/api_ns/interface/src)
|
||||
set(TFM_INTERFACE_INCLUDE_DIR ${TFM_BINARY_DIR}/api_ns/interface/include)
|
||||
set(TFM_INTERFACE_LIB_DIR ${TFM_BINARY_DIR}/api_ns/interface/lib)
|
||||
|
@ -248,7 +246,6 @@ if (CONFIG_BUILD_WITH_TFM)
|
|||
${TFM_CMAKE_ARGS}
|
||||
$<GENEX_EVAL:$<TARGET_PROPERTY:zephyr_property_target,TFM_CMAKE_OPTIONS>>
|
||||
-DMBEDCRYPTO_PATH=$<IF:$<BOOL:$<TARGET_PROPERTY:zephyr_property_target,TFM_MBEDCRYPTO_PATH>>,$<TARGET_PROPERTY:zephyr_property_target,TFM_MBEDCRYPTO_PATH>,${ZEPHYR_MBEDTLS_MODULE_DIR}>
|
||||
-DPSA_ARCH_TESTS_PATH=${PSA_ARCH_TESTS_PATH}
|
||||
${ZEPHYR_TRUSTED_FIRMWARE_M_MODULE_DIR}
|
||||
WORKING_DIRECTORY ${TFM_BINARY_DIR}
|
||||
COMMAND_EXPAND_LISTS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue