mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-28 12:05:40 +00:00
When the Kconfig BOOTLOADER_MCUBOOT is selected, an overlay to place the image at the slot0 location is required. In order to avoid having to do this manually for all samples when targetting MCUboot, include the logic inside the dts.cmake script to prepend a new common.dts file that then conditionally includes mcuboot.overlay. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
11 lines
203 B
Plaintext
11 lines
203 B
Plaintext
/*
|
|
* Basic Device Tree overlay file for chain-loading by MCUboot.
|
|
* Automatically pulled in when CONFIG_BOOTLOADER_MCUBOOT is set.
|
|
*/
|
|
|
|
/ {
|
|
chosen {
|
|
zephyr,code-partition = &slot0_partition;
|
|
};
|
|
};
|