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

makefiles/boot/riotboot: clean bootloader when cleaning application

This commit is contained in:
Francisco Molina 2021-03-16 11:21:32 +01:00
parent 6f369f4381
commit edeacbf85a
No known key found for this signature in database
GPG Key ID: 3E94EAC3DBDEEDA8

View File

@ -76,7 +76,8 @@ riotboot: $(SLOT_RIOT_BINS)
# riotboot bootloader compile target
riotboot/flash-bootloader: riotboot/bootloader/flash
riotboot/bootloader/%: $(BUILDDEPS) pkg-prepare
# avoid circular dependency against clean
riotboot/bootloader/%: $$(if $$(filter riotboot/bootloader/clean,$$@),,$$(BUILDDEPS) pkg-prepare)
$(Q)/usr/bin/env -i \
QUIET=$(QUIET) PATH="$(PATH)"\
EXTERNAL_BOARD_DIRS="$(EXTERNAL_BOARD_DIRS)" BOARD=$(BOARD)\
@ -95,6 +96,7 @@ $(BOOTLOADER_BIN)/riotboot.extended.bin: $(BOOTLOADER_BIN)/riotboot.bin
# Only call sub make if not already in riotboot
ifneq ($(BOOTLOADER_BIN)/riotboot.bin,$(BINFILE))
clean: riotboot/bootloader/clean
$(BOOTLOADER_BIN)/riotboot.bin: riotboot/bootloader/binfile
endif