kconfig: add BOARD Kconfig variable for defining boards

This variable (CONFIG_BOARD) will store the textual form of the
platform name and will be used for locating files related to the
board in the source tree.

Change-Id: I3c8a05ed428451a6785799a5492f0dd14682f208
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2015-12-07 20:20:25 -05:00
parent e02a6fe585
commit 2d762243fd
2 changed files with 8 additions and 1 deletions

View file

@ -336,10 +336,11 @@ USERINCLUDE := -include $(CURDIR)/include/generated/autoconf.h
PLATFORM_NAME = $(subst $(DQUOTE),,$(CONFIG_PLATFORM))
SOC_NAME = $(subst $(DQUOTE),,$(CONFIG_SOC))
ARCH = $(subst $(DQUOTE),,$(CONFIG_ARCH))
BOARD_NAME = $(subst $(DQUOTE),,$(CONFIG_BOARD))
KERNEL_NAME = $(subst $(DQUOTE),,$(CONFIG_KERNEL_BIN_NAME))
KERNEL_ELF_NAME = $(KERNEL_NAME).elf
export PLATFORM_NAME SOC_NAME ARCH KERNEL_NAME KERNEL_ELF_NAME
export PLATFORM_NAME SOC_NAME BOARD_NAME ARCH KERNEL_NAME KERNEL_ELF_NAME
# Use ZEPHYRINCLUDE when you must reference the include/ directory.
# Needed to be compatible with the O= option
ZEPHYRINCLUDE = \

View file

@ -49,4 +49,10 @@ config PLATFORM
This option holds the directory name used by the build system to locate
the correct linker file.
config BOARD
string
help
This option holds the name of the board and is used to located the files
related to the board in the source tree.
source "arch/*/Kconfig"