mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 04:52:59 +01:00
Merge pull request #12479 from fjmolinas/pr_ensure_port_is_set
makefiles/tools/serial: ensure PORT is set and fail early.
This commit is contained in:
commit
8a877b58df
@ -109,6 +109,9 @@ OS := $(shell uname)
|
||||
# set python path, e.g. for tests
|
||||
PYTHONPATH := $(RIOTBASE)/dist/pythonlibs/:$(PYTHONPATH)
|
||||
|
||||
# Basic utilities included before anything else
|
||||
include $(RIOTMAKE)/utils/checks.mk
|
||||
|
||||
# Include Docker settings near the top because we need to build the environment
|
||||
# command line before some of the variable origins are overwritten below when
|
||||
# using abspath, strip etc.
|
||||
|
@ -1,12 +1,9 @@
|
||||
# set default port depending on operating system
|
||||
OS := $(shell uname)
|
||||
ifeq ($(OS),Linux)
|
||||
PORT ?= $(PORT_LINUX)
|
||||
PORT ?= $(call ensure_value,$(PORT_LINUX),No port set)
|
||||
else ifeq ($(OS),Darwin)
|
||||
PORT ?= $(PORT_DARWIN)
|
||||
endif
|
||||
ifeq ($(PORT),)
|
||||
$(info Warning: no PORT set!)
|
||||
PORT ?= $(call ensure_value,$(PORT_DARWIN),No port set)
|
||||
endif
|
||||
|
||||
export BAUD ?= 115200
|
||||
|
Loading…
Reference in New Issue
Block a user