mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 22:13:52 +01:00
serial: Do not export PORT.
This variable is only used for the term recipe (and maybe for flashing). They should not be evaluated if they are not needed and the user should not see a warning that the port is not set if he does not use port (for example in make all.)
This commit is contained in:
parent
f56709e0bb
commit
c103b3f6ba
@ -95,9 +95,9 @@ export LINKFLAGS += -ffunction-sections
|
||||
|
||||
# set the tap interface for term/valgrind
|
||||
ifneq (,$(filter netdev_default gnrc_netdev_default,$(USEMODULE)))
|
||||
export PORT ?= tap0
|
||||
PORT ?= tap0
|
||||
else
|
||||
export PORT =
|
||||
PORT =
|
||||
endif
|
||||
|
||||
TERMFLAGS := $(PORT) $(TERMFLAGS)
|
||||
|
||||
@ -8,7 +8,6 @@ endif
|
||||
ifeq ($(PORT),)
|
||||
$(info Warning: no PORT set!)
|
||||
endif
|
||||
export PORT
|
||||
|
||||
export BAUD ?= 115200
|
||||
|
||||
|
||||
@ -74,7 +74,7 @@ export GIT_CACHE_DIR # path to git-cache cache directory
|
||||
export FLASH_ADDR # Define an offset to flash code into ROM memory.
|
||||
# TERMPROG # The command to call on "make term".
|
||||
# TERMFLAGS # Additional parameters to supply to TERMPROG.
|
||||
export PORT # The port to connect the TERMPROG to.
|
||||
# PORT # The port to connect the TERMPROG to.
|
||||
export ELFFILE # The unstripped result of the compilation.
|
||||
export HEXFILE # The stripped result of the compilation.
|
||||
# FLASHFILE # The output file used for flashing (transition phase: only if defined)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user