File tree Expand file tree Collapse file tree 4 files changed +24
-18
lines changed
platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_TFM/TARGET_TFM_LATEST Expand file tree Collapse file tree 4 files changed +24
-18
lines changed Original file line number Diff line number Diff line change @@ -39,3 +39,5 @@ target_sources(mbed-psa
39
39
src/tfm_platform_ipc_api.c
40
40
src/tfm_ps_ipc_api.c
41
41
)
42
+
43
+ set (CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH} ;${CMAKE_CURRENT_SOURCE_DIR} /scripts" )
Original file line number Diff line number Diff line change 1
1
# Copyright (c) 2021 ARM Limited. All rights reserved.
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
- include (${MBED_PATH} /tools/cmake/ mbed_set_post_build.cmake )
4
+ include (mbed_set_post_build )
5
5
6
6
#
7
7
# Sign TF-M secure and non-secure images and combine them with the bootloader
@@ -17,7 +17,7 @@ function(mbed_post_build_tfm_sign_image
17
17
set (mbed_target_name ${mbed_target} )
18
18
set (post_build_command
19
19
COMMAND ${Python3_EXECUTABLE}
20
- ${MBED_PATH} /platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_TFM/TARGET_TFM_LATEST /scripts/generate_mbed_image.py
20
+ ${CMAKE_CURRENT_LIST_DIR} /scripts/generate_mbed_image.py
21
21
--tfm-target ${tfm_target}
22
22
--target-path ${target_path}
23
23
--secure-bin ${secure_bin}
Original file line number Diff line number Diff line change 1
1
# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
- include (${mbed-os_SOURCE_DIR}/platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_TFM/TARGET_TFM_LATEST/scripts/mbed_set_post_build_tfm.cmake )
4
+ if ("TFM" IN_LIST MBED_TARGET_LABELS )
5
+ include (mbed_set_post_build_tfm )
6
+
7
+ mbed_post_build_tfm_sign_image (
8
+ ARM_MUSCA_B1
9
+ musca_b1
10
+ ${CMAKE_CURRENT_SOURCE_DIR}
11
+ ${CMAKE_CURRENT_SOURCE_DIR} /tfm_s.bin
12
+ )
13
+ endif ()
5
14
6
15
add_library (mbed-arm-musca-b1 INTERFACE )
7
16
@@ -54,10 +63,3 @@ target_link_libraries(mbed-arm-musca-b1
54
63
${CMAKE_CURRENT_SOURCE_DIR} /s_veneers.o
55
64
mbed-arm-ssg
56
65
)
57
-
58
- mbed_post_build_tfm_sign_image (
59
- ARM_MUSCA_B1
60
- musca_b1
61
- ${CMAKE_CURRENT_SOURCE_DIR}
62
- ${CMAKE_CURRENT_SOURCE_DIR} /tfm_s.bin
63
- )
Original file line number Diff line number Diff line change 1
1
# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
- include (${mbed-os_SOURCE_DIR}/platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_TFM/TARGET_TFM_LATEST/scripts/mbed_set_post_build_tfm.cmake )
4
+ if ("TFM" IN_LIST MBED_TARGET_LABELS )
5
+ include (mbed_set_post_build_tfm )
6
+
7
+ mbed_post_build_tfm_sign_image (
8
+ ARM_MUSCA_S1
9
+ musca_s1
10
+ ${CMAKE_CURRENT_SOURCE_DIR}
11
+ ${CMAKE_CURRENT_SOURCE_DIR} /tfm_s.bin
12
+ )
13
+ endif ()
5
14
6
15
add_library (mbed-arm-musca-s1 INTERFACE )
7
16
@@ -60,10 +69,3 @@ target_link_libraries(mbed-arm-musca-s1
60
69
${CMAKE_CURRENT_SOURCE_DIR} /s_veneers.o
61
70
mbed-arm-ssg
62
71
)
63
-
64
- mbed_post_build_tfm_sign_image (
65
- ARM_MUSCA_S1
66
- musca_s1
67
- ${CMAKE_CURRENT_SOURCE_DIR}
68
- ${CMAKE_CURRENT_SOURCE_DIR} /tfm_s.bin
69
- )
You can’t perform that action at this time.
0 commit comments