summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2013-05-01 03:51:38 (GMT)
committerSteve Kondik <shade@chemlab.org>2013-05-01 04:00:02 (GMT)
commitc102a65dfab65b7aed9d21377f238f0cb2cb78be (patch)
tree6851ecf545edacf5cf839b8886616681d3bcb2aa
parentf10f507692b047e5302d776694fcc7026ee6b72f (diff)
downloadbuild-c102a65dfab65b7aed9d21377f238f0cb2cb78be.zip
build-c102a65dfab65b7aed9d21377f238f0cb2cb78be.tar.gz
build-c102a65dfab65b7aed9d21377f238f0cb2cb78be.tar.bz2
build: Add support for extra kernel build variables
* This allows specifying a variant defconfig, and an selinux defconfig which are simply configuration fragments. Change-Id: I97882ae3b8c2e16ff6a7dce8dd3a70d70f8aa866
-rw-r--r--core/tasks/kernel.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/tasks/kernel.mk b/core/tasks/kernel.mk
index ca56a7c..d3419a0 100644
--- a/core/tasks/kernel.mk
+++ b/core/tasks/kernel.mk
@@ -22,6 +22,8 @@ TARGET_KERNEL_SOURCE ?= $(TARGET_AUTO_KDIR)
KERNEL_SRC := $(TARGET_KERNEL_SOURCE)
# kernel configuration - mandatory
KERNEL_DEFCONFIG := $(TARGET_KERNEL_CONFIG)
+VARIANT_DEFCONFIG := $(TARGET_KERNEL_VARIANT_CONFIG)
+SELINUX_DEFCONFIG := $(TARGET_KERNEL_SELINUX_CONFIG)
## Internal variables
KERNEL_OUT := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ
@@ -153,7 +155,7 @@ $(KERNEL_OUT):
mkdir -p $(KERNEL_MODULES_OUT)
$(KERNEL_CONFIG): $(KERNEL_OUT)
- $(MAKE) -C $(KERNEL_SRC) O=$(KERNEL_OUT) ARCH=$(TARGET_ARCH) $(ARM_CROSS_COMPILE) $(KERNEL_DEFCONFIG)
+ $(MAKE) -C $(KERNEL_SRC) O=$(KERNEL_OUT) ARCH=$(TARGET_ARCH) $(ARM_CROSS_COMPILE) VARIANT_DEFCONFIG=$(VARIANT_DEFCONFIG) SELINUX_DEFCONFIG=$(SELINUX_DEFCONFIG) $(KERNEL_DEFCONFIG)
$(KERNEL_OUT)/piggy : $(TARGET_PREBUILT_INT_KERNEL)
$(hide) gunzip -c $(KERNEL_OUT)/arch/$(TARGET_ARCH)/boot/compressed/piggy.gzip > $(KERNEL_OUT)/piggy