soc: stm32n6: CMakelists.txt: Fix signing tool if/else

If/else does fit here.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
This commit is contained in:
Erwan Gouriou 2025-02-07 16:43:44 +01:00 committed by Fabio Baltieri
commit 329df07a67

View file

@ -22,10 +22,7 @@ if(SIGNING_TOOL_FIND STREQUAL SIGNING_TOOL_FIND-NOTFOUND)
Signed image will not be generated.
You won't be able to run application on the board.
Refer to board documentation for more information")
endif()
if(NOT SIGNING_TOOL_FIND STREQUAL SIGNING_TOOL_FIND-NOTFOUND)
else()
set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
COMMAND ${SIGNING_TOOL}
-in ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.bin
@ -36,5 +33,4 @@ if(NOT SIGNING_TOOL_FIND STREQUAL SIGNING_TOOL_FIND-NOTFOUND)
)
set_property(TARGET runners_yaml_props_target PROPERTY bin_file ${CONFIG_KERNEL_BIN_NAME}.signed.bin)
endif()