Makefile: Delete stale bootloader binaries
Currently when the the bootloader is modified if fails to build because the wildcard in the hex merge picks up both the old and new binaries. Fix this by explicitly deleting the old one. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
This commit is contained in:
parent
df9d80f6f7
commit
7cb9f4f2eb
1 changed files with 1 additions and 0 deletions
1
Makefile
1
Makefile
|
@ -15,6 +15,7 @@ submodules :
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
|
|
||||||
bootloader:
|
bootloader:
|
||||||
|
$(RM) bootloader/_build-$(BOARD)_nrf52832//$(BOARD)_nrf52832_bootloader-*-nosd.hex
|
||||||
$(MAKE) -C bootloader/ BOARD=$(BOARD)_nrf52832 all genhex
|
$(MAKE) -C bootloader/ BOARD=$(BOARD)_nrf52832 all genhex
|
||||||
python3 tools/hexmerge.py \
|
python3 tools/hexmerge.py \
|
||||||
bootloader/_build-$(BOARD)_nrf52832/$(BOARD)_nrf52832_bootloader-*-nosd.hex \
|
bootloader/_build-$(BOARD)_nrf52832/$(BOARD)_nrf52832_bootloader-*-nosd.hex \
|
||||||
|
|
Loading…
Reference in a new issue