mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
native: only set TERMFLAGS for pyterm
If TERMPROG is unset the default is pyterm. If TERMPROG is pyterm we need to set the native flag.
This commit is contained in:
parent
2cfcc93933
commit
2b779fc5a9
@ -14,7 +14,11 @@ RESET ?= $(RIOTBOARD)/native/dist/reset.sh
|
||||
FLASHER ?=
|
||||
FLASHFILE ?= $(ELFFILE)
|
||||
|
||||
TERMFLAGS ?= -n $(FLASHFILE)
|
||||
ifeq (native,$(RIOT_TERMINAL))
|
||||
TERMPROG ?= $(FLASHFILE)
|
||||
else
|
||||
TERMFLAGS += -n $(FLASHFILE)
|
||||
endif
|
||||
|
||||
export VALGRIND ?= valgrind
|
||||
export CGANNOTATE ?= cg_annotate
|
||||
|
@ -34,6 +34,7 @@ endif
|
||||
# Configure terminal parameters
|
||||
TERMDEPS += host-tools
|
||||
TERMPROG_FLAGS = $(FLAGS_EXTRAS) $(ELFFILE) $(IPV6_PREFIX)
|
||||
RIOT_TERMINAL ?= native
|
||||
TERMPROG ?= sudo $(RIOTTOOLS)/zep_dispatch/start_network.sh $(TERMPROG_FLAGS)
|
||||
|
||||
# -z [::1]:$PORT for each ZEP device
|
||||
|
@ -80,4 +80,6 @@ else ifeq (${RIOT_TERMINAL},bootterm)
|
||||
TERMPROG = $(RIOTTOOLS)/bootterm/bt
|
||||
TERMFLAGS = $(BOOTTERMFLAGS) -a -b $(BAUD) $(PORT)
|
||||
TERMDEPS += $(TERMPROG)
|
||||
else ifeq (${RIOT_TERMINAL},native)
|
||||
TERMPROG ?= $(ELFFILE)
|
||||
endif
|
||||
|
@ -4,9 +4,6 @@ USEMODULE += nice
|
||||
USEMODULE += ps
|
||||
USEMODULE += shell_cmds_default
|
||||
|
||||
# Use a terminal that does not introduce extra characters into the stream.
|
||||
RIOT_TERMINAL ?= socat
|
||||
|
||||
APP_SHELL_FMT ?= NONE
|
||||
|
||||
include $(RIOTBASE)/Makefile.include
|
||||
|
@ -28,6 +28,9 @@ CFLAGS += -DHAS_SOCK_DNS_MOCK=1
|
||||
include $(RIOTBASE)/Makefile.include
|
||||
|
||||
ifeq (native,$(BOARD))
|
||||
RIOT_TERMINAL=native
|
||||
TERMPROG=$(ELFFILE)
|
||||
TERMFLAGS=
|
||||
test: PORT=
|
||||
$(call target-export-variables,test,PORT)
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user