[oe-commits] Andrea Adami : linux-rp.inc: Rename getline in unifdef. c to parseline to avoid conflict.

git version control git at git.openembedded.org
Sun May 30 15:58:42 UTC 2010


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

Author: Andrea Adami <andrea.adami at gmail.com>
Date:   Sun May 30 17:33:32 2010 +0200

linux-rp.inc: Rename getline in unifdef.c to parseline to avoid conflict.

* sync with linux.inc
* see https://patchwork.kernel.org/patch/11166/
* committed in 2.6.29 (commit d15bd1067b1fcb2b7250d22bc0c7c7fea0b759f7)

---

 recipes/linux/linux-rp.inc |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/recipes/linux/linux-rp.inc b/recipes/linux/linux-rp.inc
index 5bd18ff..63e528f 100644
--- a/recipes/linux/linux-rp.inc
+++ b/recipes/linux/linux-rp.inc
@@ -71,6 +71,17 @@ module_autoload_collie-ts_collie = "collie-ts"
 module_autoload_leds-locomo_collie = "leds-locomo"
 module_autoload_power_collie = "power"
 
+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
+}
+
 do_configure() {
 	rm -f ${S}/.config
 





More information about the Openembedded-commits mailing list