summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-02-26 16:03:59 +0000
committerDamien George <damien.p.george@gmail.com>2014-02-26 16:03:59 +0000
commit4273498cb8825b51d701fdcb48ce530cc15487ef (patch)
treeaefdecbeb5301410c9b3502b24ec886903c1c0bb
parentc4361227ba5d39f48b3f837f2888a7765d2a9887 (diff)
parentc3813ff50dfbba61ac41bf07065623131da45417 (diff)
downloadmicropython-4273498cb8825b51d701fdcb48ce530cc15487ef.tar.gz
micropython-4273498cb8825b51d701fdcb48ce530cc15487ef.zip
Merge pull request #324 from dhylands/board-check
Print an error if an invalid BOARD is specified
-rw-r--r--stm/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/stm/Makefile b/stm/Makefile
index 0a479afc6c..cc16eda437 100644
--- a/stm/Makefile
+++ b/stm/Makefile
@@ -25,6 +25,9 @@ CFLAGS += -I$(FATFS_DIR)
#CFLAGS += -I$(CC3K_DIR)
BOARD ?= PYBOARD4
+ifeq ($(wildcard boards/$(BOARD)/.),)
+$(error Invalid BOARD specified)
+endif
CFLAGS += -Iboards/$(BOARD)
#Debugging/Optimization