File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -8,3 +8,20 @@ zephyr_sources(
8
8
zephyr_include_directories (. )
9
9
10
10
set (SOC_LINKER_SCRIPT ${ZEPHYR_BASE} /include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "" )
11
+
12
+ if (${CMAKE_HOST_SYSTEM_NAME} STREQUAL Windows )
13
+ set (SIGNING_TOOL STM32_SigningTool_CLI.exe )
14
+ else ()
15
+ set (SIGNING_TOOL STM32_SigningTool_CLI )
16
+ endif ()
17
+
18
+ set_property (GLOBAL APPEND PROPERTY extra_post_build_commands
19
+ COMMAND ${SIGNING_TOOL}
20
+ -in ${PROJECT_BINARY_DIR} /${CONFIG_KERNEL_BIN_NAME}.bin
21
+ -nk -t fsbl -hv 2.3
22
+ -o ${PROJECT_BINARY_DIR} /${CONFIG_KERNEL_BIN_NAME}.signed.bin
23
+ -dump ${PROJECT_BINARY_DIR} /${CONFIG_KERNEL_BIN_NAME}.signed.bin
24
+ WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
25
+ )
26
+
27
+ set_property (TARGET runners_yaml_props_target PROPERTY bin_file ${CONFIG_KERNEL_BIN_NAME} .signed.bin )
Original file line number Diff line number Diff line change @@ -16,3 +16,4 @@ config SOC_SERIES_STM32N6X
16
16
select INIT_ARCH_HW_AT_BOOT
17
17
select SOC_RESET_HOOK
18
18
select TRUSTED_EXECUTION_SECURE
19
+ select BUILD_OUTPUT_BIN
You can’t perform that action at this time.
0 commit comments