Skip to content

Commit 1793934

Browse files
mathieuchopstmkartben
authored andcommitted
soc: st: stm32n6: invoke signing tool in silent mode
The STM32 signing tool (STM32_SigningTool_CLI) is invoked as a post-build command to generate a signed Zephyr binary, which is required to run from flash on N6 series. If the file specified as output already exists, the tool will by default prompt to confirm it should be overwritten. However, when invoked from the build system rather than a terminal, this prompt will break the build (freeze during the "Linking zephyr.elf" step). This can be seen by building the same application twice in a row, as the second build will not be different enough to make the build artifacts be deleted and thus the (old) signed image will be seen by the tool. Invoke the tool in silent mode such that user is never prompted. This fixes build failures while still working as intended (if present, the existing signed image will get overwritten properly). Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
1 parent e1db87e commit 1793934

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soc/st/stm32/stm32n6x/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ else()
2626
set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
2727
COMMAND ${SIGNING_TOOL}
2828
-in ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.bin
29-
-nk -t fsbl -hv 2.3
29+
-nk -t fsbl -hv 2.3 --silent
3030
-o ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.signed.bin
3131
-dump ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.signed.bin
3232
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}

0 commit comments

Comments
 (0)