diff --git a/boards/native/Makefile.include b/boards/native/Makefile.include index 498fa82c5ff39ad02e2f6c40ac9ae213f014a19f..ef82dbef3db5522c19b456d973327a074b9d0352 100644 --- a/boards/native/Makefile.include +++ b/boards/native/Makefile.include @@ -55,8 +55,19 @@ else export LINKFLAGS += -ldl endif +# set the tap interface for term/valgrind +ifneq (,$(filter nativenet,$(USEMODULE))) + export PORT ?= tap0 +else + export PORT = +endif + +ifeq (,$(filter $(PORT),$(TERMFLAGS))) + export TERMFLAGS += $(PORT) +endif + export ASFLAGS = -export DEBUGGER_FLAGS = $(ELF) +export DEBUGGER_FLAGS = --args $(ELF) $(TERMFLAGS) term-valgrind: export VALGRIND_FLAGS ?= \ --track-origins=yes \ --fullpath-after=$(RIOTBASE)/ \ @@ -89,17 +100,6 @@ ifeq ($(shell uname -s),Darwin) endif endif -# set the tap interface for term/valgrind -ifneq (,$(filter nativenet,$(USEMODULE))) - export PORT ?= tap0 -else - export PORT = -endif - -ifeq (,$(filter $(PORT),$(TERMFLAGS))) - export TERMFLAGS += $(PORT) -endif - all: # do not override first target all-debug: all