summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-06-11 20:46:04 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-06-11 20:46:04 (GMT)
commit7cb9f4f2ebfd029ebfadc9722f80e54e8b6b3666 (patch)
treefe52cdd9e7a5619264aab0c65f4ae6f70b43c94e /Makefile
parentdf9d80f6f7c906764b02f33a7491d36bfe7efd52 (diff)
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 39fb23e..135f63f 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,7 @@ submodules :
git submodule update --init --recursive
bootloader:
+ $(RM) bootloader/_build-$(BOARD)_nrf52832//$(BOARD)_nrf52832_bootloader-*-nosd.hex
$(MAKE) -C bootloader/ BOARD=$(BOARD)_nrf52832 all genhex
python3 tools/hexmerge.py \
bootloader/_build-$(BOARD)_nrf52832/$(BOARD)_nrf52832_bootloader-*-nosd.hex \