Skip to content

Commit

Permalink
boards: st: Clean up compiler related directives
Browse files Browse the repository at this point in the history
Clean up early days TF-M development directives which are outdated today.
Factorize remaining CMake instructions in soc.

Signed-off-by: Erwan Gouriou <[email protected]>
  • Loading branch information
erwango authored and fabiobaltieri committed Mar 22, 2024
1 parent 7004f37 commit 3a383aa
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 59 deletions.
15 changes: 0 additions & 15 deletions boards/st/b_u585i_iot02a/CMakeLists.txt

This file was deleted.

15 changes: 0 additions & 15 deletions boards/st/nucleo_l552ze_q/CMakeLists.txt

This file was deleted.

7 changes: 0 additions & 7 deletions boards/st/nucleo_u575zi_q/CMakeLists.txt

This file was deleted.

7 changes: 0 additions & 7 deletions boards/st/sensortile_box_pro/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# 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)
15 changes: 0 additions & 15 deletions boards/st/stm32l562e_dk/CMakeLists.txt

This file was deleted.

7 changes: 7 additions & 0 deletions soc/st/stm32/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Copyright (c) 2024 STMicroelectronics
# 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(${SOC_SERIES})

0 comments on commit 3a383aa

Please sign in to comment.