File tree Expand file tree Collapse file tree 4 files changed +8
-14
lines changed
Expand file tree Collapse file tree 4 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,10 @@ include(${TFM_TOOLCHAIN_FILE})
3737
3838project ("Trusted Firmware M" VERSION ${TFM_VERSION} LANGUAGES C CXX ASM)
3939
40+ if (BL2)
41+ add_subdirectory (bl2)
42+ endif ()
43+
4044add_subdirectory (lib/backtrace)
4145add_subdirectory (lib/ext )
4246add_subdirectory (lib/fih)
@@ -45,11 +49,7 @@ add_subdirectory(lib/tfm_log_unpriv)
4549add_subdirectory (lib/tfm_vprintf)
4650add_subdirectory (tools)
4751add_subdirectory (secure_fw)
48-
4952add_subdirectory (interface )
50- if (BL2)
51- add_subdirectory (bl2)
52- endif ()
5353
5454if (BL1 AND PLATFORM_DEFAULT_BL1)
5555 add_subdirectory (bl1/bl1_2)
Original file line number Diff line number Diff line change 11#-------------------------------------------------------------------------------
2- # Copyright (c) 2020-2022, Arm Limited. All rights reserved.
2+ # SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors
33# Copyright (c) 2021-2024 STMicroelectronics. All rights reserved.
44#
55# SPDX-License-Identifier: BSD-3-Clause
@@ -95,12 +95,6 @@ target_sources(platform_s
9595 ${STM_COMMON_DIR} /hal/Native_Driver/low_level_rng.c
9696)
9797
98- # To compile FWU support and test, should add mcuboot_config.h file in mcuboot_config folder
99- file (MAKE_DIRECTORY ${CMAKE_INSTALL_PREFIX} /../build -spe/bl2/ext /mcuboot/mcuboot_config)
100- configure_file ( ${CMAKE_CURRENT_SOURCE_DIR} /boards/mcuboot_config.h
101- ${CMAKE_INSTALL_PREFIX} /../build -spe/bl2/ext /mcuboot/mcuboot_config
102- @ONLY)
103-
10498target_compile_options (platform_s
10599 PUBLIC
106100 ${COMPILER_CMSE_FLAG}
File renamed without changes.
Original file line number Diff line number Diff line change 11#-------------------------------------------------------------------------------
2- # Copyright (c) 2020, Arm Limited. All rights reserved.
2+ # SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors
33#
44# SPDX-License-Identifier: BSD-3-Clause
55#
@@ -89,14 +89,14 @@ add_custom_target(tfm_s_fmw ALL SOURCES ${tfm_s_split_out})
8989if (CMAKE_C_COMPILER STREQUAL "iccarm" )
9090add_custom_command (
9191 OUTPUT ${tfm_s_split_out}
92- # DEPENDS tfm_s_binaries
92+ DEPENDS tfm_s_bin
9393 COMMAND ielftool --silent --exclude =.BL2_OTP --bin $<TARGET_FILE:tfm_s> ${tfm_s_bin_dir} /tfm_s_fmw.bin
9494 COMMAND ielftool --silent --only=.BL2_OTP --bin $<TARGET_FILE:tfm_s> ${tfm_s_bin_dir} /tfm_s_otp.bin
9595)
9696else ()
9797add_custom_command (
9898 OUTPUT ${tfm_s_split_out}
99- # DEPENDS tfm_s_binaries
99+ DEPENDS tfm_s_bin
100100 COMMAND ${CMAKE_OBJCOPY} --remove-section .BL2_OTP -O binary $<TARGET_FILE:tfm_s> ${tfm_s_bin_dir} /tfm_s_fmw.bin
101101 COMMAND ${CMAKE_OBJCOPY} --only-section .BL2_OTP -O binary $<TARGET_FILE:tfm_s> ${tfm_s_bin_dir} /tfm_s_otp.bin
102102)
You can’t perform that action at this time.
0 commit comments