Print an error if a non-valid BOARD is specified.

This commit is contained in:
Dave Hylands 2014-02-26 00:04:01 -08:00
parent ee31f71d39
commit c3813ff50d

View File

@ -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