From 2933bbce563da1489fb3a826c8378c67f88f0be2 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Wed, 29 Nov 2023 20:14:46 +0100 Subject: [PATCH] makefiles/tools/serial.inc.mk: make use of pyterm session names --- makefiles/tools/serial.inc.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/makefiles/tools/serial.inc.mk b/makefiles/tools/serial.inc.mk index 8389e421679e..8ccdcfe92658 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) + PYTERMSESSION ?= $(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 "$(PYTERMSESSION)" $(PYTERMFLAGS) else ifeq ($(RIOT_TERMINAL),socat) SOCAT_OUTPUT ?= - TERMPROG ?= $(RIOT_TERMINAL)