Navigation Menu

Skip to content

Commit

Permalink
patch for linux-3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Otto Allmendinger committed Feb 7, 2012
1 parent 27556d8 commit 26f3d39
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
9 changes: 7 additions & 2 deletions 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)
Expand All @@ -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
}

Expand Down
11 changes: 11 additions & 0 deletions 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"

0 comments on commit 26f3d39

Please sign in to comment.