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})
37
37
38
38
project ("Trusted Firmware M" VERSION ${TFM_VERSION} LANGUAGES C CXX ASM )
39
39
40
+ if (BL2 )
41
+ add_subdirectory (bl2 )
42
+ endif ()
43
+
40
44
add_subdirectory (lib/backtrace )
41
45
add_subdirectory (lib/ext )
42
46
add_subdirectory (lib/fih )
@@ -45,11 +49,7 @@ add_subdirectory(lib/tfm_log_unpriv)
45
49
add_subdirectory (lib/tfm_vprintf )
46
50
add_subdirectory (tools )
47
51
add_subdirectory (secure_fw )
48
-
49
52
add_subdirectory (interface )
50
- if (BL2 )
51
- add_subdirectory (bl2 )
52
- endif ()
53
53
54
54
if (BL1 AND PLATFORM_DEFAULT_BL1 )
55
55
add_subdirectory (bl1/bl1_2 )
Original file line number Diff line number Diff line change 1
1
#-------------------------------------------------------------------------------
2
- # Copyright (c) 2020-2022, Arm Limited. All rights reserved.
2
+ # SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors
3
3
# Copyright (c) 2021-2024 STMicroelectronics. All rights reserved.
4
4
#
5
5
# SPDX-License-Identifier: BSD-3-Clause
@@ -95,12 +95,6 @@ target_sources(platform_s
95
95
${STM_COMMON_DIR} /hal/Native_Driver/low_level_rng.c
96
96
)
97
97
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
-
104
98
target_compile_options (platform_s
105
99
PUBLIC
106
100
${COMPILER_CMSE_FLAG}
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
#-------------------------------------------------------------------------------
2
- # Copyright (c) 2020, Arm Limited. All rights reserved.
2
+ # SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors
3
3
#
4
4
# SPDX-License-Identifier: BSD-3-Clause
5
5
#
@@ -89,14 +89,14 @@ add_custom_target(tfm_s_fmw ALL SOURCES ${tfm_s_split_out})
89
89
if (CMAKE_C_COMPILER STREQUAL "iccarm" )
90
90
add_custom_command (
91
91
OUTPUT ${tfm_s_split_out}
92
- # DEPENDS tfm_s_binaries
92
+ DEPENDS tfm_s_bin
93
93
COMMAND ielftool --silent --exclude=.BL2_OTP --bin $< TARGET_FILE:tfm_s> ${tfm_s_bin_dir} /tfm_s_fmw.bin
94
94
COMMAND ielftool --silent --only=.BL2_OTP --bin $< TARGET_FILE:tfm_s> ${tfm_s_bin_dir} /tfm_s_otp.bin
95
95
)
96
96
else ()
97
97
add_custom_command (
98
98
OUTPUT ${tfm_s_split_out}
99
- # DEPENDS tfm_s_binaries
99
+ DEPENDS tfm_s_bin
100
100
COMMAND ${CMAKE_OBJCOPY} --remove-section .BL2_OTP -O binary $< TARGET_FILE:tfm_s> ${tfm_s_bin_dir} /tfm_s_fmw.bin
101
101
COMMAND ${CMAKE_OBJCOPY} --only-section .BL2_OTP -O binary $< TARGET_FILE:tfm_s> ${tfm_s_bin_dir} /tfm_s_otp.bin
102
102
)
You can’t perform that action at this time.
0 commit comments