From 7cb9f4f2ebfd029ebfadc9722f80e54e8b6b3666 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Thu, 11 Jun 2020 21:46:04 +0100 Subject: [PATCH] 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 --- Makefile | 1 + 1 file changed, 1 insertion(+) 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 \