Commit 32c67762 authored by Sebastian Bøe's avatar Sebastian Bøe Committed by Henrik Brix Andersen
Browse files

soc: nordic: uicr: Fix dependency issue

Although not reproducible locally, it has been observed in CI that the
uicr image will not always be the last image to be run.

To ensure it is the last image to be run we have it depend on the
'image' image when defined.

The uicr image is generated based on all other images in the build and
must therefore run last.

Signed-off-by: default avatarSebastian Bøe <sebastian.boe@nordicsemi.no>
parent de0d8b96
Loading
Loading
Loading
Loading
+4 −0
Changes for soc/nordic/common/uicr/sysbuild.cmake: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -8,4 +8,8 @@ ExternalZephyrProject_Add(

# Ensure UICR is configured and built after the default image so EDT/ELFs exist.
sysbuild_add_dependencies(CONFIGURE uicr ${DEFAULT_IMAGE})

add_dependencies(uicr ${DEFAULT_IMAGE})
if(DEFINED image)
  add_dependencies(uicr ${image})
endif()