View Single Post
Old 05-08-12, 09:44 AM   #7
mlauss
Registered User
 
Join Date: Aug 2007
Posts: 43
Default Re: 302.07/295.49 patches for linux-3.4.0+

For some reason I need this hunk as well, please add it.

Code:
--- NVIDIA-Linux-x86_64-295.40/kernel/conftest.sh~      2012-04-06 06:37:05.000000000 +0200
+++ NVIDIA-Linux-x86_64-295.40/kernel/conftest.sh       2012-04-13 08:42:13.618750616 +0200
@@ -101,7 +101,7 @@ build_cflags() {

     if [ "$OUTPUT" != "$SOURCES" ]; then
         MACH_CFLAGS="-I$HEADERS/asm-$ARCH/mach-default"
-        if [ "$ARCH" = "i386" -o "$ARCH" = "x86_64" ]; then
+        if [ "$ARCH" = "i386" -o "$ARCH" = "x86_64" -o "$ARCH" = "x86" ]; then
             MACH_CFLAGS="$MACH_CFLAGS -I$HEADERS/asm-x86/mach-default"        
             MACH_CFLAGS="$MACH_CFLAGS -I$SOURCES/arch/x86/include/asm/mach-default"
         elif [ "$ARCH" = "ARMv7" ]; then                                           
@@ -112,7 +112,7 @@ build_cflags() {
         fi                         
     else  
         MACH_CFLAGS="-I$HEADERS/asm/mach-default"
-        if [ "$ARCH" = "i386" -o "$ARCH" = "x86_64" ]; then
+        if [ "$ARCH" = "i386" -o "$ARCH" = "x86_64" -o "$ARCH" = "x86" ]; then
             MACH_CFLAGS="$MACH_CFLAGS -I$HEADERS/asm-x86/mach-default"        
             MACH_CFLAGS="$MACH_CFLAGS -I$SOURCES/arch/x86/include/asm/mach-default"
         elif [ "$ARCH" = "ARMv7" ]; then                                           
@@ -125,7 +125,7 @@ build_cflags() {
     
     CFLAGS="$BASE_CFLAGS $MACH_CFLAGS $OUTPUT_CFLAGS -I$HEADERS $AUTOCONF_CFLAGS"

-    if [ "$ARCH" = "i386" -o "$ARCH" = "x86_64" ]; then
+    if [ "$ARCH" = "i386" -o "$ARCH" = "x86_64" -o "$ARCH" = "x86" ]; then
         CFLAGS="$CFLAGS -I$SOURCES/arch/x86/include -I$OUTPUT/arch/x86/include/generated"
     elif [ "$ARCH" = "ARMv7" ]; then
         CFLAGS="$CFLAGS -I$SOURCES/arch/arm/include -I$OUTPUT/arch/arm/include/generated"
mlauss is offline   Reply With Quote