Fix default BOARD setting & messages

It's important that these lines NOT be indented with tabs, because
that provokes Make to say that commands appear before a target.
This commit is contained in:
Jeff Epler 2022-07-07 17:17:15 -05:00
parent 989acab11a
commit c4dfd8e30a
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE

View File

@ -1,12 +1,12 @@
# Select the board to build for.
BOARD=raspberrypi_pi4
BOARD?=raspberrypi_pi4b
ifeq ($(BOARD),)
$(error You must provide a BOARD parameter)
$(error You must provide a BOARD parameter)
else
ifeq ($(wildcard boards/$(BOARD)/.),)
$(error Invalid BOARD specified)
endif
ifeq ($(wildcard boards/$(BOARD)/.),)
$(error Invalid BOARD "$(BOARD)" specified)
endif
endif
# If the build directory is not given, make it reflect the board name.