Test the BOARD parameter for nullness; display a error if nothing provided

This commit is contained in:
mrmcwethy 2018-06-29 12:22:31 -07:00
parent a405892d8a
commit df4469f92b

View File

@ -4,10 +4,13 @@ PYTHON3 ?= python3
# Select the board to build for: if not given on the command line,
# then default to PYBV10.
BOARD ?= metro_m0_express
ifeq ($(BOARD),)
$(error You must provide a BOARD parameter)
else
ifeq ($(wildcard boards/$(BOARD)/.),)
$(error Invalid BOARD specified)
endif
endif
# If the build directory is not given, make it reflect the board name.