build: generate error if board is not found
Change-Id: Icf0c713d5fe3bb56dea4d74c87176c04f80df329 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
1a1f7fd916
commit
57605a558c
|
@ -25,7 +25,9 @@ override CONF_FILE := $(strip $(subst $(DQUOTE),,$(CONF_FILE)))
|
|||
|
||||
ifdef BOARD
|
||||
KBUILD_DEFCONFIG_PATH=$(wildcard $(ZEPHYR_BASE)/boards/*/$(BOARD)_defconfig)
|
||||
export KBUILD_DEFCONFIG_PATH
|
||||
ifeq ($(KBUILD_DEFCONFIG_PATH),)
|
||||
$(error Board $(BOARD) not found!)
|
||||
endif
|
||||
else
|
||||
$(error BOARD is not defined!)
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue