Skip to content

Commit 8456464

Browse files
committed
zephyr: Fix issue with sysbuild if something else is named mcuboot
Fixes an issue which can occur in tests whereby an application has the name mcuboot but is not mcuboot itself Signed-off-by: Jamie McCrae <[email protected]>
1 parent d5e0e89 commit 8456464

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

boot/zephyr/sysbuild/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ function(mathup num align result)
44
endfunction()
55

66
function(${SYSBUILD_CURRENT_MODULE_NAME}_pre_image_cmake)
7-
cmake_parse_arguments(POST_IMAGE_CMAKE "" "IMAGE" "IMAGES" ${ARGN})
7+
cmake_parse_arguments(PRE_IMAGE_CMAKE "" "IMAGE" "IMAGES" ${ARGN})
88

9-
if(NOT "${POST_IMAGE_CMAKE_IMAGE}" STREQUAL "mcuboot")
9+
if(NOT "${PRE_IMAGE_CMAKE_IMAGE}" STREQUAL "mcuboot" OR NOT SB_CONFIG_BOOTLOADER_MCUBOOT)
1010
return()
1111
endif()
1212

@@ -21,7 +21,7 @@ endfunction(${SYSBUILD_CURRENT_MODULE_NAME}_pre_image_cmake)
2121
function(${SYSBUILD_CURRENT_MODULE_NAME}_post_image_cmake)
2222
cmake_parse_arguments(POST_IMAGE_CMAKE "" "IMAGE" "IMAGES" ${ARGN})
2323

24-
if(NOT "${POST_IMAGE_CMAKE_IMAGE}" STREQUAL "mcuboot")
24+
if(NOT "${POST_IMAGE_CMAKE_IMAGE}" STREQUAL "mcuboot" OR NOT SB_CONFIG_BOOTLOADER_MCUBOOT)
2525
return()
2626
endif()
2727

0 commit comments

Comments
 (0)