mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Makefile.include: RIOTBOARD as BOARDSDIR fallback
This commit is contained in:
parent
c839bb809a
commit
1f66c0f3ee
@ -158,6 +158,20 @@ else
|
||||
|
||||
all: link
|
||||
|
||||
# Include Board and CPU configuration, if BOARD is not found in BOARDSDIR
|
||||
# e.g. when set by the environment fallback to searching in RIOTBOARD
|
||||
ifeq (,$(wildcard $(BOARDSDIR)/$(BOARD)/.))
|
||||
ifneq ($(RIOTBOARD),$(BOARDSDIR))
|
||||
# The specified board $(BOARD) was not found in $(BOARDSDIR) fallback to RIOTBOARD
|
||||
BOARDSDIR = $(RIOTBOARD)
|
||||
endif
|
||||
ifeq ($(RIOTBOARD),$(BOARDSDIR))
|
||||
ifeq (,$(wildcard $(BOARDSDIR)/$(BOARD)/.))
|
||||
$(error The specified board $(BOARD) does not exist.)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
include $(RIOTMAKE)/info.inc.mk
|
||||
|
||||
# Static code analysis tools provided by LLVM
|
||||
@ -265,9 +279,6 @@ LAZYSPONGE_FLAGS ?= $(if $(filter 1,$(QUIET)),,--verbose)
|
||||
ifeq (, $(APPLICATION))
|
||||
$(error An application name must be specified as APPLICATION.)
|
||||
endif
|
||||
ifneq (0,$(shell test -d $(BOARDSDIR)/$(BOARD); echo $$?))
|
||||
$(error The specified board $(BOARD) does not exist.)
|
||||
endif
|
||||
|
||||
# Use TOOLCHAIN environment variable to select the toolchain to use.
|
||||
# Default for macOS: llvm; for other OS: gnu
|
||||
|
Loading…
Reference in New Issue
Block a user