[oe-commits] Klaus Kurzmann : linux-openmoko-devel_git.bb: apply getline fix for scripts /unidef.c

git version control git at git.openembedded.org
Fri May 21 17:57:16 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: d1b03808e6b4377e0ce0d9d4ac4a2849d56ba41f
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=d1b03808e6b4377e0ce0d9d4ac4a2849d56ba41f

Author: Klaus Kurzmann <mok at fluxnetz.de>
Date:   Fri May 21 19:57:05 2010 +0200

linux-openmoko-devel_git.bb: apply getline fix for scripts/unidef.c

Signed-off-by: Klaus Kurzmann <mok at fluxnetz.de>

---

 recipes/linux/linux-openmoko-devel_git.bb |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/recipes/linux/linux-openmoko-devel_git.bb b/recipes/linux/linux-openmoko-devel_git.bb
index 21d227d..9d4aa22 100644
--- a/recipes/linux/linux-openmoko-devel_git.bb
+++ b/recipes/linux/linux-openmoko-devel_git.bb
@@ -20,6 +20,15 @@ CONFIG_NAME_om-gta01 = "gta01_moredrivers_defconfig"
 CONFIG_NAME_om-gta02 = "gta02_packaging_defconfig"
 
 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
+
 	install -m 644 ./arch/arm/configs/${CONFIG_NAME} ${WORKDIR}/defconfig-oe
 	cat ${WORKDIR}/defconfig-oe.patch | patch -p0 -d ${WORKDIR}
 }





More information about the Openembedded-commits mailing list