diff --git a/arch/cpu/nrf/Makefile.nrf b/arch/cpu/nrf/Makefile.nrf index 0a6190a234b5deb494b1aff6ef3e1b066bf30763..5109f94125ebd8b90fcdfee1129e5040813738f1 100644 --- a/arch/cpu/nrf/Makefile.nrf +++ b/arch/cpu/nrf/Makefile.nrf @@ -86,7 +86,7 @@ endif %.upload: $(OUT_HEX) ifeq (, $(shell which $(NRFJPROG))) - @echo "ERROR: Could not find nrfjprog, please install it first" + $(error Could not find nrfjprog "$(NRFJPROG)", please install it) else $(NRFJPROG) $(NRFJPROG_OPTIONS) $(NRFJPROG_FLAGS) --sectorerase --program $< $(NRFJPROG) $(NRFJPROG_OPTIONS) $(NRFJPROG_FLAGS) --reset @@ -114,7 +114,7 @@ nrf-upload-sequence: $(foreach SNR, $(NRF_SNRS), nrf-upload-snr.$(SNR)) %.upload-all: $(OUT_HEX) ifeq (, $(shell which $(NRFJPROG))) - @echo "ERROR: Could not find nrfjprog, please install it first" + $(error Could not find nrfjprog "$(NRFJPROG)", please install it) else $(MAKE) HEX_FILE=$< -j $(NUMPAR) nrf-upload-sequence endif diff --git a/arch/cpu/nrf52840/Makefile.nrf52840 b/arch/cpu/nrf52840/Makefile.nrf52840 index 0c620a8a8b6ea8d98ac9c4473fee730c509966ca..14196d299e05cb4e84a6aa4936fba9d342ee51fe 100644 --- a/arch/cpu/nrf52840/Makefile.nrf52840 +++ b/arch/cpu/nrf52840/Makefile.nrf52840 @@ -122,7 +122,7 @@ endif %.upload: $(OUT_HEX) ifeq (, $(shell which $(NRFJPROG))) - @echo "ERROR: Could not find nrfjprog, please install it first" + $(error Could not find nrfjprog "$(NRFJPROG)", please install it) else $(NRFJPROG) -f nrf52 $(NRFJPROG_FLAGS) --sectorerase --program $< $(NRFJPROG) -f nrf52 $(NRFJPROG_FLAGS) --reset @@ -150,7 +150,7 @@ nrf-upload-sequence: $(foreach SNR, $(NRF_SNRS), nrf-upload-snr.$(SNR)) %.upload-all: $(OUT_HEX) ifeq (, $(shell which $(NRFJPROG))) - @echo "ERROR: Could not find nrfjprog, please install it first" + $(error Could not find nrfjprog "$(NRFJPROG)", please install it) else $(MAKE) HEX_FILE=$< -j $(NUMPAR) nrf-upload-sequence endif