Skip to content

Commit 4094813

Browse files
Marti Bolivard3zd3z
authored andcommitted
zephyr: force mcuboot to fit in the boot partition
Add a DTC overlay file which uses the boot partition as the code partition. Signed-off-by: Marti Bolivar <marti.bolivar@linaro.org>
1 parent 6cff59a commit 4094813

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,7 @@ SOURCE_DIR = boot/zephyr
5353
# Needed for mbedtls config-boot.h file.
5454
CFLAGS += -I$(CURDIR)/boot/zephyr/include
5555

56+
DTC_OVERLAY_FILE := $(CURDIR)/boot/zephyr/dts.overlay
57+
export DTC_OVERLAY_FILE
58+
5659
include ${ZEPHYR_BASE}/Makefile.inc

boot/zephyr/dts.overlay

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/ {
2+
chosen {
3+
zephyr,code-partition = &boot_partition;
4+
};
5+
};

0 commit comments

Comments
 (0)