boards: nucleo_l552ze_q_ns: pass compiler name to the post-build script
Pass the compiler name and path to the TF-M post-build script as an argument, so the TF-M build can work with the Zephyr SDK as well (not only with the GNU ARM embedded toolchain.) Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
a152e82f4a
commit
49c56b4071
1 changed files with 7 additions and 1 deletions
|
@ -6,6 +6,12 @@ zephyr_library_sources(pinmux.c)
|
|||
zephyr_library_include_directories(${ZEPHYR_BASE}/drivers)
|
||||
endif()
|
||||
|
||||
if(${ZEPHYR_TOOLCHAIN_VARIANT} STREQUAL "zephyr")
|
||||
set(COMPILER_FULL_PATH ${ZEPHYR_SDK_INSTALL_DIR}/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc)
|
||||
elseif(${ZEPHYR_TOOLCHAIN_VARIANT} STREQUAL "gnuarmemb")
|
||||
set(COMPILER_FULL_PATH ${GNUARMEMB_TOOLCHAIN_PATH}/bin/arm-none-eabi-gcc)
|
||||
endif()
|
||||
|
||||
if (CONFIG_BUILD_WITH_TFM)
|
||||
# Set default image versions if not defined elsewhere
|
||||
if (NOT DEFINED TFM_IMAGE_VERSION_S)
|
||||
|
@ -59,6 +65,6 @@ if (CONFIG_BUILD_WITH_TFM)
|
|||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/tfm/bin/bl2.bin ${CMAKE_BINARY_DIR}/mcuboot.bin
|
||||
|
||||
#Execute post build script postbuild.sh
|
||||
COMMAND ${CMAKE_BINARY_DIR}/tfm/postbuild.sh
|
||||
COMMAND ${CMAKE_BINARY_DIR}/tfm/postbuild.sh ${COMPILER_FULL_PATH}
|
||||
)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue