Makefile.include: add cleanterm target

It is similar to 'term' but with removing possible additional behaviors
from pyterm.

It currently removes the logging prefix.
This commit is contained in:
Gaëtan Harter 2019-08-28 17:27:53 +02:00
parent a514c9bc12
commit d27a43f89a
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B

View File

@ -630,6 +630,13 @@ term: $(filter flash flash-only, $(MAKECMDGOALS)) $(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
cleanterm: $(filter flash, $(MAKECMDGOALS)) $(TERMDEPS)
$(call check_cmd,$(TERMPROG),Terminal program)
$(TERMPROG) $(TERMFLAGS)
list-ttys:
$(Q)$(RIOTTOOLS)/usb-serial/list-ttys.sh