Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=kernel30.git;a=commitdiff;h=6eeea2e89c8932b361e124d660e15e91993c642d
commit 6eeea2e89c8932b361e124d660e15e91993c642d Author: Michel Hermier <herm...@frugalware.org> Date: Wed Aug 17 16:28:56 2011 +0200 nvidia-173xx-173.14.30-6-i686 * Add patch so that it compile with kernel-3.0. diff --git a/source/x11-extra/nvidia-173xx/FrugalBuild b/source/x11-extra/nvidia-173xx/FrugalBuild index 733b9ea..24b548b 100644 --- a/source/x11-extra/nvidia-173xx/FrugalBuild +++ b/source/x11-extra/nvidia-173xx/FrugalBuild @@ -3,7 +3,7 @@ pkgname=nvidia-173xx pkgver=173.14.30 -pkgrel=5 +pkgrel=6 archs=('i686' 'x86_64' '!ppc') _F_nvidia_legacyver="173.14.xx" Finclude nvidia @@ -11,3 +11,7 @@ case "$_F_nvidia_arch" in x86) sha1sums=('f902138475851d9fc84f81528b49b1c3903483f3');; x86_64) sha1sums=('93f10be314021adebcc5c0e675e0d83653adceb3');; esac + +source=("${source[@]}" kernel-3.0.patch) +sha1sums=("${sha1sums[@]}" 'ac0c120dd8c9aefa9d7e2c81e88f41b0e5cba3d9') + diff --git a/source/x11-extra/nvidia-173xx/kernel-3.0.patch b/source/x11-extra/nvidia-173xx/kernel-3.0.patch new file mode 100644 index 0000000..bbb395b --- /dev/null +++ b/source/x11-extra/nvidia-173xx/kernel-3.0.patch @@ -0,0 +1,22 @@ +--- usr/src/nv/conftest.sh.orig 2011-05-30 12:24:39.770031044 -0400 ++++ usr/src/nv/conftest.sh 2011-05-30 12:25:49.059315428 -0400 +@@ -76,7 +76,7 @@ + build_cflags() { + ARCH=`uname -m | sed -e 's/i.86/i386/'` + +- BASE_CFLAGS="-D__KERNEL__ \ ++ BASE_CFLAGS="-O2 -D__KERNEL__ \ + -DKBUILD_BASENAME=\"#conftest$$\" -DKBUILD_MODNAME=\"#conftest$$\" \ + -nostdinc -isystem $ISYSTEM" + +--- usr/src/nv/nv-linux.h.orig 2011-05-30 12:27:09.341819608 -0400 ++++ usr/src/nv/nv-linux.h 2011-05-30 12:27:28.854951411 -0400 +@@ -32,7 +32,7 @@ + # define KERNEL_2_4 + #elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0) + # error This driver does not support 2.5 kernels! +-#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 7, 0) ++#elif LINUX_VERSION_CODE < KERNEL_VERSION(3, 1, 0) + # define KERNEL_2_6 + #else + # error This driver does not support development kernels! _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git