Fix flash and genhex targets.

This commit is contained in:
Scott Shawcroft 2018-12-05 09:18:12 -08:00
parent 73a9d50236
commit 689c577ab7
No known key found for this signature in database
GPG Key ID: FD0EDC4B6C53CA59

View File

@ -402,7 +402,7 @@ __check_defined = \
ifeq ($(VERSION),) ifeq ($(VERSION),)
# Flash the compiled # Flash the compiled
flash: $(BUILD)/$(OUTPUT_FILENAME).hex flash: $(BUILD)/$(OUTPUT_FILENAME)-nosd.hex
@echo Flashing: $< @echo Flashing: $<
$(NRFJPROG) --program $< --sectoranduicrerase -f nrf52 --reset $(NRFJPROG) --program $< --sectoranduicrerase -f nrf52 --reset
@ -471,7 +471,7 @@ size: $(BUILD)/$(OUTPUT_FILENAME)-nosd.out
.phony: genhex genpkg release .phony: genhex genpkg release
## Create binary .hex file from the .out file ## 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 $(BUILD)/$(OUTPUT_FILENAME)-nosd.hex: $(BUILD)/$(OUTPUT_FILENAME)-nosd.out
@echo CR $(OUTPUT_FILENAME)-nosd.hex @echo CR $(OUTPUT_FILENAME)-nosd.hex