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>
This commit is contained in:
Marti Bolivar 2017-08-30 17:54:53 -04:00 committed by David Brown
parent 6cff59a616
commit 4094813181
2 changed files with 8 additions and 0 deletions

View File

@ -53,4 +53,7 @@ SOURCE_DIR = boot/zephyr
# Needed for mbedtls config-boot.h file.
CFLAGS += -I$(CURDIR)/boot/zephyr/include
DTC_OVERLAY_FILE := $(CURDIR)/boot/zephyr/dts.overlay
export DTC_OVERLAY_FILE
include ${ZEPHYR_BASE}/Makefile.inc

5
boot/zephyr/dts.overlay Normal file
View File

@ -0,0 +1,5 @@
/ {
chosen {
zephyr,code-partition = &boot_partition;
};
};