Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=ryuotesting.git;a=commitdiff;h=86a6b2de566901d1dc78074c7172b154b944cd71

commit 86a6b2de566901d1dc78074c7172b154b944cd71
Author: James Buren <[email protected]>
Date:   Fri Mar 23 11:28:00 2012 -0500

nvidia-290.10-16-x86_64
* rebuild with kernel 3.3
* add patch for kernel 3.3

diff --git a/source/x11-extra/nvidia/FrugalBuild 
b/source/x11-extra/nvidia/FrugalBuild
index ae8ec92..25fd4ad 100644
--- a/source/x11-extra/nvidia/FrugalBuild
+++ b/source/x11-extra/nvidia/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=nvidia
pkgver=290.10
-pkgrel=15
+pkgrel=16
archs=('i686' 'x86_64')
_F_kernelmod_scriptlet=nvidia.install
Finclude kernel-module
@@ -37,17 +37,24 @@ esac

source=("${source[@]}" \
modprobe-nvidia.conf \
-       xorg-nvidia.conf)
+       xorg-nvidia.conf \
+       kernel-3.3.patch)
sha1sums=("${sha1sums[@]}" \
'a2bf63eb7dffdfc9268534654d3864e865af6834' \
-       '15455cb16a6638ee348dc01620c7f64234178ac8')
+       '15455cb16a6638ee348dc01620c7f64234178ac8' \
+       'ea65734f13fc95e8fc51d1ae4bf0ca0a061ba4a6')

build () {
cd $Fsrcdir
sh $_F_nvidia_name.run --extract-only

+       Fcd .
+
+       cd $Fsrcdir/${_F_nvidia_name}
+       Fpatchall
+
# Build the kernel module
-       cd ${_F_nvidia_name}/kernel || Fdie
+       cd $Fsrcdir/${_F_nvidia_name}/kernel || Fdie
make SYSSRC=$_F_kernelmod_dir/build module || Fdie
Ffilerel nvidia.ko $_F_kernelmod_dir/kernel/drivers/video/nvidia.ko
Fbuild_kernelmod_scriptlet
diff --git a/source/x11-extra/nvidia/kernel-3.3.patch 
b/source/x11-extra/nvidia/kernel-3.3.patch
new file mode 100644
index 0000000..d09064f
--- /dev/null
+++ b/source/x11-extra/nvidia/kernel-3.3.patch
@@ -0,0 +1,12 @@
+diff -ur a/kernel/conftest.sh b/kernel/conftest.sh
+--- a/kernel/conftest.sh       2012-03-23 11:21:54.788942135 -0500
++++ b/kernel/conftest.sh       2012-03-23 11:22:09.607941580 -0500
+@@ -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"
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to