While nice at first, this causes more issues than it's worth for a slightly more pretty output. Hiding information from developers is not a good idea, especially when it comes to an often finicky programming step. While in theory error output should be caught, there are enough cases where the programmer will get stuck in a loop or require user input that hiding programmer output by default is a bad idea.
22 lines
712 B
Makefile
22 lines
712 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
|
|
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
|