boards: st: Clean up compiler related directives
Clean up early days TF-M development directives which are outdated today. Factorize remaining CMake instructions in soc. Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
This commit is contained in:
parent
7004f373f2
commit
3a383aad6c
|
@ -1,15 +0,0 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
# Define the toolchain to be used (by eg CI)
|
|
||||||
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_property(GLOBAL APPEND PROPERTY extra_post_build_commands
|
|
||||||
#Execute post build script postbuild.sh
|
|
||||||
COMMAND $<TARGET_PROPERTY:tfm,TFM_BINARY_DIR>/api_ns/postbuild.sh ${COMPILER_FULL_PATH}
|
|
||||||
)
|
|
||||||
endif()
|
|
|
@ -1,15 +0,0 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
# Define the toolchain to be used (by eg CI)
|
|
||||||
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_property(GLOBAL APPEND PROPERTY extra_post_build_commands
|
|
||||||
#Execute post build script postbuild.sh
|
|
||||||
COMMAND $<TARGET_PROPERTY:tfm,TFM_BINARY_DIR>/api_ns/postbuild.sh ${COMPILER_FULL_PATH}
|
|
||||||
)
|
|
||||||
endif()
|
|
|
@ -1,7 +0,0 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
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()
|
|
|
@ -1,10 +1,3 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
# Define the toolchain to be used (by eg CI)
|
|
||||||
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()
|
|
||||||
|
|
||||||
zephyr_library_sources(board.c)
|
zephyr_library_sources(board.c)
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
# Define the toolchain to be used (by eg CI)
|
|
||||||
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_property(GLOBAL APPEND PROPERTY extra_post_build_commands
|
|
||||||
#Execute post build script postbuild.sh
|
|
||||||
COMMAND $<TARGET_PROPERTY:tfm,TFM_BINARY_DIR>/api_ns/postbuild.sh ${COMPILER_FULL_PATH}
|
|
||||||
)
|
|
||||||
endif()
|
|
|
@ -1,5 +1,12 @@
|
||||||
# Copyright (c) 2024 STMicroelectronics
|
# Copyright (c) 2024 STMicroelectronics
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
if (CONFIG_BUILD_WITH_TFM)
|
||||||
|
set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
|
||||||
|
#Execute post build script postbuild.sh
|
||||||
|
COMMAND $<TARGET_PROPERTY:tfm,TFM_BINARY_DIR>/api_ns/postbuild.sh ${CROSS_COMPILE}${CC}
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
add_subdirectory(common)
|
add_subdirectory(common)
|
||||||
add_subdirectory(${SOC_SERIES})
|
add_subdirectory(${SOC_SERIES})
|
||||||
|
|
Loading…
Reference in a new issue