Commit 271dbb40 authored by Jamie McCrae's avatar Jamie McCrae Committed by Anas Nashif
Browse files

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: default avatarJamie McCrae <jamie.mccrae@nordicsemi.no>
parent 175e1444
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -73,6 +73,9 @@ function(zephyr_mcuboot_tasks)
                            "APPLICATION_CONFIG_DIR=\"${APPLICATION_CONFIG_DIR}\" "
                            "and WEST_TOPDIR=\"${WEST_TOPDIR}\")")
      endif()

      # Add key file as CMake dependency so a file change will rerun the build
      set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${${file}})
    endforeach()
  endif()