1
0
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:
Gaëtan Harter 2018-06-18 15:16:51 +02:00 committed by Juan Carrano
parent f56709e0bb
commit c103b3f6ba
3 changed files with 3 additions and 4 deletions

View File

@ -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)

View File

@ -8,7 +8,6 @@ endif
ifeq ($(PORT),)
$(info Warning: no PORT set!)
endif
export PORT
export BAUD ?= 115200

View File

@ -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)