aboutsummaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen2
diff options
context:
space:
mode:
Diffstat (limited to 'meta-rcar-gen2')
-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
}