Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

patch for linux-3.3

  • Loading branch information...
commit 26f3d39792e385aeddcb621ad168af3b42ddd550 1 parent 27556d8
Otto Allmendinger authored
Showing with 18 additions and 2 deletions.
  1. +7 −2 nvidia-mainline/PKGBUILD
  2. +11 −0 nvidia-mainline/conftest.patch
View
9 nvidia-mainline/PKGBUILD
@@ -1,11 +1,12 @@
-# Maintainer: Mikael Eriksson <mikael_eriksson@miffe.org>
+# Contributor: Otto Allmendinger <otto.allmendinger@gmail.com>
+# Contributor: Mikael Eriksson <mikael_eriksson@miffe.org>
# Original arch package by:
# Thomas Baechler <thomas@archlinux.org>
pkgname=nvidia-mainline
pkgver=285.05.09
pkgver=290.10
-pkgrel=1
+pkgrel=2
pkgdesc="NVIDIA drivers for linux-mainline."
read _ _kernver < <(file -b "/boot/vmlinuz-linux-mainline" | grep -o 'version [^ ]\+')
_kernpkgver=$(pacman -Q linux-mainline|cut -d' ' -f 2)
@@ -30,11 +31,15 @@ elif [ "$CARCH" = "x86_64" ]; then
md5sums=('cebfba9a7e91716a06c66bb5b38d9661')
fi
+source=(${source[@]} conftest.patch)
+md5sums=(${md5sums[@]} '711712cd8658a6059a46feba13c34eee')
+
build() {
msg "Building for kernel version $_kernver"
cd "${srcdir}"
sh "${_pkg}.run" --extract-only
cd "${_pkg}/kernel"
+ patch < "${srcdir}/conftest.patch"
make SYSSRC=/lib/modules/"${_kernver}/build" module
}
View
11 nvidia-mainline/conftest.patch
@@ -0,0 +1,11 @@
+--- conftest.sh.old 2012-02-07 10:49:38.975099386 +0100
++++ conftest.sh 2012-02-07 10:50:08.701765066 +0100
+@@ -122,7 +122,7 @@
+ CFLAGS="$BASE_CFLAGS $MACH_CFLAGS $OUTPUT_CFLAGS -I$HEADERS $AUTOCONF_CFLAGS"
+
+ if [ "$ARCH" = "i386" -o "$ARCH" = "x86_64" ]; then
+- CFLAGS="$CFLAGS -I$SOURCES/arch/x86/include"
++ CFLAGS="$CFLAGS -I$SOURCES/arch/x86/include -I$SOURCES/arch/x86/include/generated"
+ fi
+ if [ -n "$BUILD_PARAMS" ]; then
+ CFLAGS="$CFLAGS -D$BUILD_PARAMS"
Please sign in to comment.
Something went wrong with that request. Please try again.