From 689c577ab7d21c1ddea38af28ffbaa8ac5b07362 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Wed, 5 Dec 2018 09:18:12 -0800 Subject: [PATCH] Fix flash and genhex targets. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9731ec1..8f552e7 100644 --- a/Makefile +++ b/Makefile @@ -402,7 +402,7 @@ __check_defined = \ ifeq ($(VERSION),) # Flash the compiled -flash: $(BUILD)/$(OUTPUT_FILENAME).hex +flash: $(BUILD)/$(OUTPUT_FILENAME)-nosd.hex @echo Flashing: $< $(NRFJPROG) --program $< --sectoranduicrerase -f nrf52 --reset @@ -471,7 +471,7 @@ size: $(BUILD)/$(OUTPUT_FILENAME)-nosd.out .phony: genhex genpkg release ## Create binary .hex file from the .out file -genhex: $(BUILD)/$(OUTPUT_FILENAME).hex +genhex: $(BUILD)/$(OUTPUT_FILENAME)-nosd.hex $(BUILD)/$(OUTPUT_FILENAME)-nosd.hex: $(BUILD)/$(OUTPUT_FILENAME)-nosd.out @echo CR $(OUTPUT_FILENAME)-nosd.hex