Browse Source
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>pull/6079/head
5 changed files with 41 additions and 2 deletions
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
/* |
||||
* Common Device Tree source, used for conditionally pulling in features and |
||||
* additions by the build system. |
||||
*/ |
||||
|
||||
#ifdef CONFIG_BOOTLOADER_MCUBOOT |
||||
#include "mcuboot.overlay" |
||||
#endif |
||||
|
@ -0,0 +1,10 @@
@@ -0,0 +1,10 @@
|
||||
/* |
||||
* 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; |
||||
}; |
||||
}; |
Loading…
Reference in new issue