diff --git a/Makefile b/Makefile index 1e9ec42b..533aff2a 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/boot/zephyr/dts.overlay b/boot/zephyr/dts.overlay new file mode 100644 index 00000000..74d3dfbf --- /dev/null +++ b/boot/zephyr/dts.overlay @@ -0,0 +1,5 @@ +/ { + chosen { + zephyr,code-partition = &boot_partition; + }; +};