summaryrefslogtreecommitdiff
path: root/Makefile.inc
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2015-10-09 06:23:01 -0400
committerAnas Nashif <anas.nashif@intel.com>2016-02-05 20:24:53 -0500
commitc47769bd565b0098a019aa21544cd8d729642237 (patch)
treeab9cfac8f4b48c36f6d7c956349c5feb2133681d /Makefile.inc
parentdf73d321472322462226e48ff423c41ab1393356 (diff)
kconfig: move all defconfig fragments to configs/
When building for a certain platform, we have no idea what architecture we are building for. We used to specify the architecture alongside the board or platform name and this was used to find the defconfig in arch/<arch>/configs. By putting all board configurations we support in one place we do not have to specify the architecture, just the configuration name. Change-Id: Ib7e9f63b9a8051714dc207f583fd26ef620497d8 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile.inc b/Makefile.inc
index b8cf16724..9ce107a0f 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -1,10 +1,11 @@
# vim: filetype=make
+#
+
+ARCH ?= x86
PROJECT_BASE ?= $(shell pwd)
O ?= $(PROJECT_BASE)/outdir
-ARCH ?= x86
-
# Turn O into an absolute path; we call the main Kbuild with $(MAKE) -C
# which changes the working directory, relative paths don't work right.
# Need to create the directory first to make readlink happy
@@ -18,7 +19,7 @@ KERNEL_TYPE = micro
endif
ifdef PLATFORM_CONFIG
-KBUILD_DEFCONFIG_PATH=$(ZEPHYR_BASE)/arch/$(ARCH)/configs/$(PLATFORM_CONFIG)_defconfig
+KBUILD_DEFCONFIG_PATH=$(ZEPHYR_BASE)/configs/$(PLATFORM_CONFIG)_defconfig
export KBUILD_DEFCONFIG_PATH
else
$(error PLATFORM_CONFIG is not defined!)