diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2018-07-01 23:46:23 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-01 23:46:23 -0700 |
| commit | a0c5182548af4e6dc635a08f36f4dc9549259507 (patch) | |
| tree | e37ac30b10a5ff35cf81e89ce0afd9ca8172df9a | |
| parent | a405892d8a59004171f3fd17d02f83002cb07f1a (diff) | |
| parent | df4469f92ba75271c8fb6801eead675f9f440040 (diff) | |
Merge pull request #976 from mrmcwethy/makefile1
Test the BOARD parameter for nullness
| -rw-r--r-- | ports/atmel-samd/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ports/atmel-samd/Makefile b/ports/atmel-samd/Makefile index b7181aa3b..678ddffa3 100644 --- a/ports/atmel-samd/Makefile +++ b/ports/atmel-samd/Makefile @@ -4,9 +4,12 @@ PYTHON3 ?= python3 # Select the board to build for: if not given on the command line, # then default to PYBV10. -BOARD ?= metro_m0_express -ifeq ($(wildcard boards/$(BOARD)/.),) -$(error Invalid BOARD specified) +ifeq ($(BOARD),) + $(error You must provide a BOARD parameter) +else + ifeq ($(wildcard boards/$(BOARD)/.),) + $(error Invalid BOARD specified) + endif endif |
