Skip to content

Commit a0c5182

Browse files
authored
Merge pull request micropython#976 from mrmcwethy/makefile1
Test the BOARD parameter for nullness
2 parents a405892 + df4469f commit a0c5182

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ports/atmel-samd/Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ PYTHON3 ?= python3
44

55
# Select the board to build for: if not given on the command line,
66
# then default to PYBV10.
7-
BOARD ?= metro_m0_express
8-
ifeq ($(wildcard boards/$(BOARD)/.),)
9-
$(error Invalid BOARD specified)
7+
ifeq ($(BOARD),)
8+
$(error You must provide a BOARD parameter)
9+
else
10+
ifeq ($(wildcard boards/$(BOARD)/.),)
11+
$(error Invalid BOARD specified)
12+
endif
1013
endif
1114

1215

0 commit comments

Comments
 (0)