aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/kexecboot
diff options
context:
space:
mode:
authorAndrea Adami <andrea.adami@gmail.com>2010-05-19 00:40:47 +0200
committerAndrea Adami <andrea.adami@gmail.com>2010-05-19 00:40:47 +0200
commit06fff17991cf5105cb29d3cec2640995ace329b5 (patch)
tree3748ade9fbfd64d38729befe4173d2bce4e540af /recipes/kexecboot
parent23fe8f3c1ab1e0755b24a42335c4b6e3d1847a6a (diff)
downloadopenembedded-06fff17991cf5105cb29d3cec2640995ace329b5.tar.gz
openembedded-06fff17991cf5105cb29d3cec2640995ace329b5.tar.bz2
openembedded-06fff17991cf5105cb29d3cec2640995ace329b5.zip
linux-kexecboot: sed out conflicting getline in scripts/unifdef.c
* mainline since 2.6.29-rc8
Diffstat (limited to 'recipes/kexecboot')
-rw-r--r--recipes/kexecboot/linux-kexecboot.inc9
1 files changed, 9 insertions, 0 deletions
diff --git a/recipes/kexecboot/linux-kexecboot.inc b/recipes/kexecboot/linux-kexecboot.inc
index 5621e698f9..2751126b15 100644
--- a/recipes/kexecboot/linux-kexecboot.inc
+++ b/recipes/kexecboot/linux-kexecboot.inc
@@ -71,6 +71,15 @@ sed -i -e /CONFIG_BLK_DEV_INITRD/d \
sed -i -e /CONFIG_CMDLINE/s/quiet/loglevel=3/1 ${S}/.config
sed -i -e /CONFIG_CMDLINE/s/debug/loglevel=3/1 ${S}/.config
+# Rename getline in ./scripts/unifdef.c
+# with 2.6.2x builds are currently failing to build unifdef.c,
+# clashing with exposed getline() from <stdio.h>
+# see https://patchwork.kernel.org/patch/11166/
+# committed in 2.6.29 (harmless for newer kernels)
+
+sed -i -e 's/getline/parseline/g' ${S}/scripts/unifdef.c
+
+
echo 'CONFIG_BLK_DEV_INITRD=y
CONFIG_KEXEC=y
${KERNEL_COMPRESSION}