mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
makefiles: Select suitable terminal when stdio_rtt is used
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
This commit is contained in:
parent
2c9e853aae
commit
6cfe240812
@ -23,6 +23,16 @@ PROG_DEV ?= $(PORT)
|
||||
|
||||
export BAUD ?= 115200
|
||||
|
||||
ifneq (,$(filter stdio_rtt,$(USEMODULE)))
|
||||
ifeq (${PROGRAMMER},openocd)
|
||||
RIOT_TERMINAL ?= openocd-rtt
|
||||
else ifeq (${PROGRAMMER},jlink)
|
||||
RIOT_TERMINAL ?= jlink
|
||||
else ifeq (${RIOT_TERMINAL},)
|
||||
$(warning "Warning: No RIOT_TERMINAL set, but using stdio_rtt: The default terminal is likely not to work.")
|
||||
endif
|
||||
endif
|
||||
|
||||
RIOT_TERMINAL ?= pyterm
|
||||
ifeq ($(RIOT_TERMINAL),pyterm)
|
||||
TERMPROG ?= $(RIOTTOOLS)/pyterm/pyterm
|
||||
|
Loading…
Reference in New Issue
Block a user