1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

makefiles/mcuboot: use canned recipe for flashing.

The canned recipe is preferred to using $(FLASHER) $(FFLAGS) as it
allows to specify additional action actions (like what preflash is
currently doing.)
This commit is contained in:
Juan Carrano 2019-03-05 14:45:48 +01:00
parent 748bc6deee
commit 420b2c9220

View File

@ -43,12 +43,14 @@ $(MCUBOOT_BIN):
.PHONY: mcuboot-flash-bootloader mcuboot-flash
mcuboot-flash-bootloader: HEXFILE = $(MCUBOOT_BIN)
mcuboot-flash-bootloader: export FLASH_ADDR = 0x0
mcuboot-flash-bootloader: $(MCUBOOT_BIN) $(FLASHDEPS)
FLASH_ADDR=0x0 $(FLASHER) $(FFLAGS)
$(flash-recipe)
mcuboot-flash: HEXFILE = $(SIGN_BINFILE)
mcuboot-flash: export FLASH_ADDR = $(MCUBOOT_SLOT0_SIZE)
mcuboot-flash: mcuboot $(FLASHDEPS) mcuboot-flash-bootloader
FLASH_ADDR=$(MCUBOOT_SLOT0_SIZE) $(FLASHER) $(FFLAGS)
$(flash-recipe)
else
mcuboot: