sysbuild: images: mcuboot: Make application depend on bootloader

Makes the MCUboot image configuration task run before the
application image configuration, this is so information can be
generated by MCUboot and then used in the application

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae 2023-10-30 17:15:19 +00:00 committed by Carles Cufí
parent 9104a804b9
commit b4640ecf04

View file

@ -10,8 +10,8 @@ if(SB_CONFIG_BOOTLOADER_MCUBOOT)
SOURCE_DIR ${ZEPHYR_MCUBOOT_MODULE_DIR}/boot/zephyr/
APP_TYPE BOOTLOADER
)
# MCUBoot default configuration is to perform a full chip erase.
# Placing MCUBoot first in list to ensure it is flashed before other images.
# Place MCUBoot first in list to ensure it is configured and flashed before other images.
sysbuild_add_dependencies(CONFIGURE ${DEFAULT_IMAGE} ${image})
sysbuild_add_dependencies(FLASH ${DEFAULT_IMAGE} ${image})
set_config_string(${image} CONFIG_BOOT_SIGNATURE_KEY_FILE "${SB_CONFIG_BOOT_SIGNATURE_KEY_FILE}")