netbook-pro-kernel_2.6.17.bb: Fix Bugzilla/5411 kernel compilation failure
authorKhem Raj <raj.khem@gmail.com>
Sun, 23 Jan 2011 01:55:41 +0000 (17:55 -0800)
committerKhem Raj <raj.khem@gmail.com>
Sun, 23 Jan 2011 01:57:00 +0000 (17:57 -0800)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/linux/netbook-pro-kernel-2.6.17/sumversion-include-limit.h.patch [new file with mode: 0644]
recipes/linux/netbook-pro-kernel_2.6.17.bb

diff --git a/recipes/linux/netbook-pro-kernel-2.6.17/sumversion-include-limit.h.patch b/recipes/linux/netbook-pro-kernel-2.6.17/sumversion-include-limit.h.patch
new file mode 100644 (file)
index 0000000..9972e81
--- /dev/null
@@ -0,0 +1,24 @@
+commit fc31c7716355a226b8ed4e16f4581e5c8fa53570
+Author: Mike Frysinger <vapier@gentoo.org>
+Date:   Thu May 17 14:57:20 2007 -0400
+
+    kbuild: include limits.h in sumversion.c for PATH_MAX
+    
+    POSIX says limits.h defines PATH_MAX so we should include it (which fixes
+    compiling on some systems like OS X).
+    
+    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
+
+Index: linux-2.6.17/scripts/mod/sumversion.c
+===================================================================
+--- linux-2.6.17.orig/scripts/mod/sumversion.c
++++ linux-2.6.17/scripts/mod/sumversion.c
+@@ -7,6 +7,7 @@
+ #include <ctype.h>
+ #include <errno.h>
+ #include <string.h>
++#include <limits.h>
+ #include "modpost.h"
+ /*
index f7dd441..0ac4122 100644 (file)
@@ -1,16 +1,17 @@
 DESCRIPTION = "Linux Kernel for Psion/Teklogix netbookpro  compatible machines"
 SECTION = "kernel"
 LICENSE = "GPLv2"
-PR = "r2"
+PR = "r3"
 
 COMPATIBLE_MACHINE = "netbook-pro"
 
 SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.17.tar.bz2;name=kernel \
-       http://linuxtogo.org/~koen/netbook-base-r3.patch;name=patch1 \
-       http://linuxtogo.org/~koen/netbook-pcon-r0.patch;name=patch2 \
-       http://linuxtogo.org/~koen/netbook-pcon-i2c-r1.patch;name=patch3 \
-       http://linuxtogo.org/~koen/defconfig;name=config \
-                  "
+       http://www.linuxtogo.org/~koen/netbook-base-r3.patch;name=patch1 \
+       http://www.linuxtogo.org/~koen/netbook-pcon-r0.patch;name=patch2 \
+       http://www.linuxtogo.org/~koen/netbook-pcon-i2c-r1.patch;name=patch3 \
+       http://www.linuxtogo.org/~koen/defconfig;name=config \
+       file://sumversion-include-limit.h.patch \
+       "
 
 S = "${WORKDIR}/linux-2.6.17"