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:
parent
6cff59a616
commit
4094813181
3
Makefile
3
Makefile
|
@ -53,4 +53,7 @@ SOURCE_DIR = boot/zephyr
|
||||||
# Needed for mbedtls config-boot.h file.
|
# Needed for mbedtls config-boot.h file.
|
||||||
CFLAGS += -I$(CURDIR)/boot/zephyr/include
|
CFLAGS += -I$(CURDIR)/boot/zephyr/include
|
||||||
|
|
||||||
|
DTC_OVERLAY_FILE := $(CURDIR)/boot/zephyr/dts.overlay
|
||||||
|
export DTC_OVERLAY_FILE
|
||||||
|
|
||||||
include ${ZEPHYR_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
/ {
|
||||||
|
chosen {
|
||||||
|
zephyr,code-partition = &boot_partition;
|
||||||
|
};
|
||||||
|
};
|
Loading…
Reference in New Issue