diff options
author | Damien George <damien.p.george@gmail.com> | 2014-02-26 16:03:59 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-02-26 16:03:59 +0000 |
commit | 4273498cb8825b51d701fdcb48ce530cc15487ef (patch) | |
tree | aefdecbeb5301410c9b3502b24ec886903c1c0bb | |
parent | c4361227ba5d39f48b3f837f2888a7765d2a9887 (diff) | |
parent | c3813ff50dfbba61ac41bf07065623131da45417 (diff) | |
download | micropython-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/Makefile | 3 |
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 |