Test the BOARD parameter for nullness; display a error if nothing provided
This commit is contained in:
parent
a405892d8a
commit
df4469f92b
@ -4,9 +4,12 @@ PYTHON3 ?= python3
|
|||||||
|
|
||||||
# Select the board to build for: if not given on the command line,
|
# Select the board to build for: if not given on the command line,
|
||||||
# then default to PYBV10.
|
# then default to PYBV10.
|
||||||
BOARD ?= metro_m0_express
|
ifeq ($(BOARD),)
|
||||||
ifeq ($(wildcard boards/$(BOARD)/.),)
|
$(error You must provide a BOARD parameter)
|
||||||
$(error Invalid BOARD specified)
|
else
|
||||||
|
ifeq ($(wildcard boards/$(BOARD)/.),)
|
||||||
|
$(error Invalid BOARD specified)
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user