From a00d61a2d678041a5dffbc7e3d71bb3eead26cfa Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Sun, 15 Mar 2020 09:51:14 +0100 Subject: [PATCH] makefiles/tools/cc2538-bsl.inc.mk: allow FLASHER override If flasher is changed then make will still see it as a FLASH dependency and try to execute the target which will likely not exist. A use case for this is when flashing on a remote machine and setting FLASHER=ssh to then execute the FLASHER on the remote. --- makefiles/tools/cc2538-bsl.inc.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/makefiles/tools/cc2538-bsl.inc.mk b/makefiles/tools/cc2538-bsl.inc.mk index b1b2cc3981..91d2f1d335 100644 --- a/makefiles/tools/cc2538-bsl.inc.mk +++ b/makefiles/tools/cc2538-bsl.inc.mk @@ -6,4 +6,6 @@ FFLAGS = -p "$(PROG_DEV)" $(FFLAGS_OPTS) -e -w -v -b $(PROG_BAUD) $(FLASHFILE) RESET ?= $(FLASHER) -p "$(PROG_DEV)" $(FFLAGS_OPTS) -FLASHDEPS += $(FLASHER) +ifeq ($(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py,$(FLASHER)) + FLASHDEPS += $(FLASHER) +endif