From d27a43f89a93cc3edadd7a73e44dbee0ea3cede1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= Date: Wed, 28 Aug 2019 17:27:53 +0200 Subject: [PATCH] Makefile.include: add cleanterm target It is similar to 'term' but with removing possible additional behaviors from pyterm. It currently removes the logging prefix. --- Makefile.include | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile.include b/Makefile.include index 1a7607ad5b..e4e10acb0c 100644 --- a/Makefile.include +++ b/Makefile.include @@ -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