mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
a00d61a2d6
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.
12 lines
359 B
Makefile
12 lines
359 B
Makefile
FLASHFILE ?= $(BINFILE)
|
|
FLASHER = $(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py
|
|
FFLAGS_OPTS ?=
|
|
PROG_BAUD ?= 500000 # default value in cc2538-bsl
|
|
FFLAGS = -p "$(PROG_DEV)" $(FFLAGS_OPTS) -e -w -v -b $(PROG_BAUD) $(FLASHFILE)
|
|
|
|
RESET ?= $(FLASHER) -p "$(PROG_DEV)" $(FFLAGS_OPTS)
|
|
|
|
ifeq ($(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py,$(FLASHER))
|
|
FLASHDEPS += $(FLASHER)
|
|
endif
|