build: support multiple defconfigs per board
We will now look for the defconfig to be used using wildcards which will allow us to host similar boards in the same directory and share all existing files. JIRA: ZEP-103 Change-Id: Icfe5dc2fa4b2c4e21e6b1285d80e0c844d430d7d Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
05ea5d0cf2
commit
7bf6ce5b3b
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ KERNEL_TYPE ?= micro
|
||||||
override CONF_FILE := $(strip $(subst $(DQUOTE),,$(CONF_FILE)))
|
override CONF_FILE := $(strip $(subst $(DQUOTE),,$(CONF_FILE)))
|
||||||
|
|
||||||
ifdef BOARD
|
ifdef BOARD
|
||||||
KBUILD_DEFCONFIG_PATH=$(ZEPHYR_BASE)/boards/$(BOARD)/$(BOARD)_defconfig
|
KBUILD_DEFCONFIG_PATH=$(wildcard $(ZEPHYR_BASE)/boards/*/$(BOARD)_defconfig)
|
||||||
export KBUILD_DEFCONFIG_PATH
|
export KBUILD_DEFCONFIG_PATH
|
||||||
else
|
else
|
||||||
$(error BOARD is not defined!)
|
$(error BOARD is not defined!)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue