summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorMario Haustein <mario.haustein@hrz.tu-chemnitz.de>2016-10-24 13:14:05 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-25 21:02:12 +0200
commit6bbb8cf19c38a7f15d28617ef492e1c6f202b6f9 (patch)
tree4adea400737c7722ae7c917cabb261c05672069c /target
parent2607c89848a087c3a582e76b83d1bd3424efcc9c (diff)
add support for providing an externel kernel configuration file
Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
Diffstat (limited to 'target')
-rw-r--r--target/Makefile4
-rw-r--r--target/config/Config.in.kernelcfg8
2 files changed, 12 insertions, 0 deletions
diff --git a/target/Makefile b/target/Makefile
index 68254867b..5af02d0f1 100644
--- a/target/Makefile
+++ b/target/Makefile
@@ -4,7 +4,11 @@
include $(ADK_TOPDIR)/rules.mk
include $(ADK_TOPDIR)/mk/rootfs.mk
+ifeq ($(ADK_TARGET_KERNEL_USE_CUSTOMCONFIG),y)
+KERNEL_MODULES_USED:=$(shell grep -s =m $(ADK_TOPDIR)/$(ADK_TARGET_KERNEL_CUSTOMCONFIG_PATH))
+else
KERNEL_MODULES_USED:=$(shell grep ^ADK_KERNEL $(ADK_TOPDIR)/.config|grep =m)
+endif
all: install
diff --git a/target/config/Config.in.kernelcfg b/target/config/Config.in.kernelcfg
index cbeacebcd..6159d059f 100644
--- a/target/config/Config.in.kernelcfg
+++ b/target/config/Config.in.kernelcfg
@@ -14,6 +14,9 @@ config ADK_TARGET_KERNEL_USE_MINICONFIG
config ADK_TARGET_KERNEL_USE_DEFCONFIG
bool "Use defconfig from Linux kernel"
+config ADK_TARGET_KERNEL_USE_CUSTOMCONFIG
+ bool "Use custom Linux kernel configuration file"
+
endchoice
config ADK_TARGET_KERNEL_DEFCONFIG
@@ -30,3 +33,8 @@ config ADK_TARGET_KERNEL_DEFCONFIG
default "orca_defconfig" if ADK_TARGET_SYSTEM_ANDES_AG101P
default "bb.org_defconfig" if ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK
+config ADK_TARGET_KERNEL_CUSTOMCONFIG_PATH
+ string "Kernel configuration file location"
+ depends on ADK_TARGET_KERNEL_USE_CUSTOMCONFIG
+ default ".kernelconfig"
+