diff --git a/Makefile.include b/Makefile.include index b2c21258830abe22c7c3e61ad0fd2f7c8eff2c38..d87802d7d20ff9252703cbe4411a4dd9df4fe096 100644 --- a/Makefile.include +++ b/Makefile.include @@ -567,6 +567,6 @@ CFLAGS := $(patsubst -D%,,$(CFLAGS)) CFLAGS := $(patsubst -U%,,$(CFLAGS)) CFLAGS += -include '$(RIOTBUILD_CONFIG_HEADER_C)' -# include multislot support -include $(RIOTMAKE)/multislot.mk +# include mcuboot support +include $(RIOTMAKE)/mcuboot.mk endif # BOARD=none diff --git a/cpu/cortexm_common/Makefile.include b/cpu/cortexm_common/Makefile.include index ee70e1b686d11f4437fadbce5370ad59cdc46640..b0b21710b5d8c7cb31ee0c65a5512f92f8d66887 100644 --- a/cpu/cortexm_common/Makefile.include +++ b/cpu/cortexm_common/Makefile.include @@ -1,5 +1,3 @@ # include module specific includes INCLUDES += -I$(RIOTCPU)/cortexm_common/include INCLUDES += -I$(RIOTCPU)/cortexm_common/include/vendor - -export IMAGE_HDR_SIZE ?= 512 diff --git a/makefiles/multislot.mk b/makefiles/mcuboot.mk similarity index 98% rename from makefiles/multislot.mk rename to makefiles/mcuboot.mk index 94fb5f35d8e120c3d84726af2fb96bf584ab83c1..25eeb786c79454c57ee52cb0586b16041c4c0a6c 100644 --- a/makefiles/multislot.mk +++ b/makefiles/mcuboot.mk @@ -11,6 +11,8 @@ MCUBOOT_BIN ?= $(BINDIR)/mcuboot.bin MCUBOOT_BIN_URL ?= http://download.riot-os.org/mynewt.mcuboot.bin MCUBOOT_BIN_MD5 ?= 0c71a0589bd3709fc2d90f07a0035ce7 +export IMAGE_HDR_SIZE ?= 512 + create-key: $(MCUBOOT_KEYFILE) ifeq ($(BINDIR)/key.pem,$(MCUBOOT_KEYFILE))