mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Makefile.include/term: define 'flash/flash-only' as TERMFLASHDEPS
This puts the handling of `flash/flash-only` in common for both `term/cleanterm` commands.
This commit is contained in:
parent
2c3c275694
commit
4fe875c92f
@ -637,16 +637,17 @@ flash-only: $(FLASHDEPS)
|
||||
preflash: $(BUILD_BEFORE_FLASH)
|
||||
$(PREFLASHER) $(PREFFLAGS)
|
||||
|
||||
TERMFLASHDEPS ?= $(filter flash flash-only,$(MAKECMDGOALS))
|
||||
termdeps: $(TERMDEPS)
|
||||
|
||||
term: $(filter flash flash-only, $(MAKECMDGOALS)) $(TERMDEPS)
|
||||
term: $(TERMFLASHDEPS) $(TERMDEPS)
|
||||
$(call check_cmd,$(TERMPROG),Terminal program)
|
||||
$(TERMPROG) $(TERMFLAGS)
|
||||
|
||||
# Term without the pyterm added logging
|
||||
# TERMFLAGS must be exported for `jlink.sh term_rtt`.
|
||||
cleanterm: export PYTERMFLAGS += --noprefix --no-repeat-command-on-empty-line
|
||||
cleanterm: $(filter flash flash-only, $(MAKECMDGOALS)) $(TERMDEPS)
|
||||
cleanterm: $(TERMFLASHDEPS) $(TERMDEPS)
|
||||
$(call check_cmd,$(TERMPROG),Terminal program)
|
||||
$(TERMPROG) $(TERMFLAGS)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user