Merge pull request #324 from dhylands/board-check

Print an error if an invalid BOARD is specified
This commit is contained in:
Damien George 2014-02-26 16:03:59 +00:00
commit 4273498cb8
1 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,9 @@ CFLAGS += -I$(FATFS_DIR)
#CFLAGS += -I$(CC3K_DIR) #CFLAGS += -I$(CC3K_DIR)
BOARD ?= PYBOARD4 BOARD ?= PYBOARD4
ifeq ($(wildcard boards/$(BOARD)/.),)
$(error Invalid BOARD specified)
endif
CFLAGS += -Iboards/$(BOARD) CFLAGS += -Iboards/$(BOARD)
#Debugging/Optimization #Debugging/Optimization