make: check for board existence

This commit is contained in:
Oleg Hahm 2015-02-22 21:11:30 +01:00
parent 20067567d1
commit 18bf9529f2
1 changed files with 4 additions and 0 deletions

View File

@ -91,6 +91,10 @@ ifeq (,$(UNZIP_HERE))
endif
endif
ifneq (0,$(shell test -d $(RIOTBOARD)/$(BOARD); echo $$?))
$(error The specified board $(BOARD) does not exist.)
endif
# mandatory includes!
include $(RIOTBASE)/Makefile.modules
include $(RIOTBOARD)/$(BOARD)/Makefile.include