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:
parent
9104a804b9
commit
b4640ecf04
1 changed files with 2 additions and 2 deletions
|
@ -10,8 +10,8 @@ if(SB_CONFIG_BOOTLOADER_MCUBOOT)
|
||||||
SOURCE_DIR ${ZEPHYR_MCUBOOT_MODULE_DIR}/boot/zephyr/
|
SOURCE_DIR ${ZEPHYR_MCUBOOT_MODULE_DIR}/boot/zephyr/
|
||||||
APP_TYPE BOOTLOADER
|
APP_TYPE BOOTLOADER
|
||||||
)
|
)
|
||||||
# MCUBoot default configuration is to perform a full chip erase.
|
# Place MCUBoot first in list to ensure it is configured and flashed before other images.
|
||||||
# Placing MCUBoot first in list to ensure it is flashed before other images.
|
sysbuild_add_dependencies(CONFIGURE ${DEFAULT_IMAGE} ${image})
|
||||||
sysbuild_add_dependencies(FLASH ${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}")
|
set_config_string(${image} CONFIG_BOOT_SIGNATURE_KEY_FILE "${SB_CONFIG_BOOT_SIGNATURE_KEY_FILE}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue