[oe-commits] Andrea Adami : linux.inc: Rename getline in unifdef. c to parseline to avoid conflict.
git version control
git at git.openembedded.org
Thu May 20 22:47:41 UTC 2010
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 75bc8e0ea1118b478332e110eb39bd6cf405ee26
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=75bc8e0ea1118b478332e110eb39bd6cf405ee26
Author: Andrea Adami <andrea.adami at gmail.com>
Date: Fri May 21 00:08:56 2010 +0200
linux.inc: Rename getline in unifdef.c to parseline to avoid conflict.
* move patch from linux-kexecboot.inc
* see https://patchwork.kernel.org/patch/11166/
* committed in 2.6.29 (commit d15bd1067b1fcb2b7250d22bc0c7c7fea0b759f7)
* Acked-by: Tom Rini <tom_rini at mentor.com>
* Acked-by: Henning Heinold <heinold at inf.fu-berlin.de>
* Acked-by: Koen Kooi <koen at openembedded.org>
---
recipes/kexecboot/linux-kexecboot.inc | 9 ---------
recipes/linux/linux.inc | 10 ++++++++++
2 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/recipes/kexecboot/linux-kexecboot.inc b/recipes/kexecboot/linux-kexecboot.inc
index 2751126..5621e69 100644
--- a/recipes/kexecboot/linux-kexecboot.inc
+++ b/recipes/kexecboot/linux-kexecboot.inc
@@ -71,15 +71,6 @@ 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}
diff --git a/recipes/linux/linux.inc b/recipes/linux/linux.inc
index a92cdd3..0b188d4 100644
--- a/recipes/linux/linux.inc
+++ b/recipes/linux/linux.inc
@@ -57,6 +57,16 @@ python __anonymous () {
}
do_configure_prepend() {
+
+ # Rename getline in ./scripts/unifdef.c
+ # Kernels up to 2.6.29 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 (commit d15bd1067b1fcb2b7250d22bc0c7c7fea0b759f7)
+
+ sed -i -e 's/getline/parseline/g' ${S}/scripts/unifdef.c
+
+
echo "" > ${S}/.config
#
More information about the Openembedded-commits
mailing list