From c6731b17cf80fcdd01e4840ab01c63ccb5f8476d Mon Sep 17 00:00:00 2001 From: Yannick Gicquel Date: Wed, 7 Sep 2016 15:06:42 +0200 Subject: 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 --- meta-rcar-gen2/recipes-kernel/linux/linux.inc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'meta-rcar-gen2') 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 } -- cgit 1.2.3-korg