diff --git a/makefiles/tools/serial.inc.mk b/makefiles/tools/serial.inc.mk index 8389e421679e9..6385725b74113 100644 --- a/makefiles/tools/serial.inc.mk +++ b/makefiles/tools/serial.inc.mk @@ -43,8 +43,9 @@ endif RIOT_TERMINAL ?= pyterm ifeq ($(RIOT_TERMINAL),pyterm) + SESSION ?= $(shell date +%Y-%M-%d_%H.%M.%S)-$(APPLICATION)-$(BOARD) TERMPROG ?= $(RIOTTOOLS)/pyterm/pyterm - TERMFLAGS ?= -p "$(PORT)" -b "$(BAUD)" $(PYTERMFLAGS) + TERMFLAGS ?= -p "$(PORT)" -b "$(BAUD)" -rn "$(SESSION)" $(PYTERMFLAGS) else ifeq ($(RIOT_TERMINAL),socat) SOCAT_OUTPUT ?= - TERMPROG ?= $(RIOT_TERMINAL)