Skip to content

Commit 6eebe0a

Browse files
nordicjmdkalowsk
authored andcommitted
cmake: mcuboot: Add dependency to keys
Adds a dependency that causes CMake to re-configure if the input key files for MCUboot signing/encryption have changed Signed-off-by: Jamie McCrae <[email protected]> (cherry picked from commit 271dbb4)
1 parent 1ea8bb2 commit 6eebe0a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/mcuboot.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ function(zephyr_mcuboot_tasks)
7373
"APPLICATION_CONFIG_DIR=\"${APPLICATION_CONFIG_DIR}\" "
7474
"and WEST_TOPDIR=\"${WEST_TOPDIR}\")")
7575
endif()
76+
77+
# Add key file as CMake dependency so a file change will rerun the build
78+
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${${file}})
7679
endforeach()
7780
endif()
7881

0 commit comments

Comments
 (0)