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.
This commit is contained in:
Francisco Molina 2020-03-15 09:51:14 +01:00
parent 1b5f22ec2e
commit a00d61a2d6
No known key found for this signature in database
GPG Key ID: 3E94EAC3DBDEEDA8

View File

@ -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