Skip to content
Snippets Groups Projects
Commit dd379220 authored by Ludwig Knüpfer's avatar Ludwig Knüpfer
Browse files

Merge pull request #1851 from authmillenon/native-debug-args

make: initialize debugger with TERMFLAGS
parents aeef8923 b3f59eec
No related branches found
No related tags found
No related merge requests found
...@@ -55,8 +55,19 @@ else ...@@ -55,8 +55,19 @@ else
export LINKFLAGS += -ldl export LINKFLAGS += -ldl
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
export ASFLAGS = export ASFLAGS =
export DEBUGGER_FLAGS = $(ELF) export DEBUGGER_FLAGS = --args $(ELF) $(TERMFLAGS)
term-valgrind: export VALGRIND_FLAGS ?= \ term-valgrind: export VALGRIND_FLAGS ?= \
--track-origins=yes \ --track-origins=yes \
--fullpath-after=$(RIOTBASE)/ \ --fullpath-after=$(RIOTBASE)/ \
...@@ -89,17 +100,6 @@ ifeq ($(shell uname -s),Darwin) ...@@ -89,17 +100,6 @@ ifeq ($(shell uname -s),Darwin)
endif endif
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: # do not override first target
all-debug: all all-debug: all
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment