Commit 57605a55 authored by Anas Nashif's avatar Anas Nashif Committed by Anas Nashif
Browse files

build: generate error if board is not found



Change-Id: Icf0c713d5fe3bb56dea4d74c87176c04f80df329
Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent 1a1f7fd9
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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