Commit 40948131 authored by Marti Bolivar's avatar Marti Bolivar Committed by David Brown
Browse files

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: default avatarMarti Bolivar <marti.bolivar@linaro.org>
parent 6cff59a6
Loading
Loading
Loading
Loading
+3
Changes for Makefile: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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
Changes for boot/zephyr/dts.overlay: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
/ {
	chosen {
		zephyr,code-partition = &boot_partition;
	};
};