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:
parent
748bc6deee
commit
420b2c9220
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user