aboutsummaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen2/recipes-kernel/linux/linux.inc
diff options
context:
space:
mode:
authorYannick Gicquel <yannick.gicquel@iot.bzh>2016-09-07 15:06:42 +0200
committerYannick Gicquel <yannick.gicquel@iot.bzh>2016-11-02 15:41:21 +0100
commitc2917448b83c1aa739f1a9b19d077e923b61ffe2 (patch)
tree261a8b5b0d3b1a8df4eb4d01308860a2bc1edb79 /meta-rcar-gen2/recipes-kernel/linux/linux.inc
parent9b067585964b78d78410574ed00ee0fafd7d3960 (diff)
kernel: update to support cfg system
This report 04f6cc6652 upstream patch to support fragment configuration file for linux-renesas kernel. Change-Id: I2bcc9326ead7fe4abdc51902e454bbb63acd67b8 Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh>
Diffstat (limited to 'meta-rcar-gen2/recipes-kernel/linux/linux.inc')
-rw-r--r--meta-rcar-gen2/recipes-kernel/linux/linux.inc14
1 files changed, 14 insertions, 0 deletions
diff --git a/meta-rcar-gen2/recipes-kernel/linux/linux.inc b/meta-rcar-gen2/recipes-kernel/linux/linux.inc
index 75a7141..b5b368a 100644
--- a/meta-rcar-gen2/recipes-kernel/linux/linux.inc
+++ b/meta-rcar-gen2/recipes-kernel/linux/linux.inc
@@ -37,6 +37,16 @@ kernel_configure_variable() {
fi
}
+# returns all the elements from the src uri that are .cfg files
+def find_cfgs(d):
+ sources=src_patches(d, True)
+ sources_list=[]
+ for s in sources:
+ if s.endswith('.cfg'):
+ sources_list.append(s)
+
+ return sources_list
+
do_configure_prepend() {
# Clean .config
echo "" > ${B}/.config
@@ -201,6 +211,10 @@ do_configure_prepend() {
# Remove all modified configs and add the rest to .config
sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${B}/.config'
+ # add cfgs from SRC_URI.
+ cfgs="${@" ".join(find_cfgs(d))}"
+ cat ${cfgs} >> '${B}/.config'
+
yes '' | oe_runmake -C ${S} O=${B} oldconfig
}