diff options
author | 2016-09-07 15:06:42 +0200 | |
---|---|---|
committer | 2016-09-07 15:21:15 +0200 | |
commit | c6731b17cf80fcdd01e4840ab01c63ccb5f8476d (patch) | |
tree | 5e50ac709d9c83ea5c209e2fc9e32dab283c20c3 /meta-rcar-gen2/recipes-kernel | |
parent | 7b32832788a70c862398188e1712f835d814592a (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')
-rw-r--r-- | meta-rcar-gen2/recipes-kernel/linux/linux.inc | 14 |
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 806be22..31aecf7 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 @@ -179,6 +189,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 } |