From 57605a558cc7b9a9f6eff43f5d4bd173338524a3 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Sat, 23 Apr 2016 21:45:58 -0400 Subject: [PATCH] build: generate error if board is not found Change-Id: Icf0c713d5fe3bb56dea4d74c87176c04f80df329 Signed-off-by: Anas Nashif --- Makefile.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.inc b/Makefile.inc index 37cb652568..3a9bf80614 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -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