mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
22 lines
723 B
Makefile
22 lines
723 B
Makefile
# Configure the programmer related variables
|
|
|
|
PROGRAMMER_QUIET ?= $(QUIET)
|
|
ifeq (0,$(PROGRAMMER_QUIET))
|
|
PROGRAMMER_VERBOSE_OPT ?= --verbose
|
|
endif
|
|
|
|
# Don't use the programmer wrapper by default
|
|
USE_PROGRAMMER_WRAPPER_SCRIPT ?= 0
|
|
|
|
ifeq (1,$(USE_PROGRAMMER_WRAPPER_SCRIPT))
|
|
PROGRAMMER_FLASH ?= @$(RIOTTOOLS)/programmer/programmer.py \
|
|
--action Flashing --cmd "$(FLASHER) $(FFLAGS)" \
|
|
--programmer "$(PROGRAMMER)" $(PROGRAMMER_VERBOSE_OPT)
|
|
PROGRAMMER_RESET ?= @$(RIOTTOOLS)/programmer/programmer.py \
|
|
--action Resetting --cmd "$(RESET) $(RESET_FLAGS)" \
|
|
--programmer "$(PROGRAMMER)" $(PROGRAMMER_VERBOSE_OPT)
|
|
else
|
|
PROGRAMMER_FLASH ?= $(FLASHER) $(FFLAGS)
|
|
PROGRAMMER_RESET ?= $(RESET) $(RESET_FLAGS)
|
|
endif
|