cmake: tfm: propagate Zephyr Python3 interpreter to TF-M build
The TF-M build uses the vanilla CMake FindPython3 mechanism which in several cases misbehaves, see #24308 for details. Ensure TF-M build uses same Python interpreter as Zephyr itself. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
This commit is contained in:
parent
29e0c6c809
commit
790388b7c0
1 changed files with 1 additions and 0 deletions
|
@ -331,6 +331,7 @@ if (CONFIG_BUILD_WITH_TFM)
|
|||
-DTFM_PLATFORM=${CONFIG_TFM_BOARD}
|
||||
-DCONFIG_TFM_BUILD_LOG_QUIET=ON
|
||||
-DCONFIG_TFM_MEMORY_USAGE_QUIET=OFF
|
||||
-DPython3_EXECUTABLE=${Python3_EXECUTABLE}
|
||||
${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}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue