nvidia: add patch for linux>=3.8.

This commit is contained in:
Juan RP 2013-03-02 10:02:08 +01:00
parent 30932bf9ef
commit 03277b9560
2 changed files with 12 additions and 2 deletions

View file

@ -0,0 +1,10 @@
--- kernel/conftest.sh.orig
+++ kernel/conftest.sh
@@ -160,6 +160,7 @@ build_cflags() {
if [ "$ARCH" = "i386" -o "$ARCH" = "x86_64" ]; then
CFLAGS="$CFLAGS -I$SOURCES/arch/x86/include"
+ CFLAGS="$CFLAGS -I$SOURCES/arch/x86/include/uapi"
CFLAGS="$CFLAGS -I$OUTPUT/arch/x86/include/generated"
CFLAGS="$CFLAGS -I$OUTPUT/arch/x86/include/generated/uapi"
elif [ "$ARCH" = "arm" ]; then

View file

@ -1,7 +1,7 @@
# Template file for 'nvidia'
pkgname=nvidia
version=313.18
revision=3
revision=4
short_desc="NVIDIA non free driver for linux -- libraries and utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
license="Propietary NVIDIA license"
@ -33,7 +33,7 @@ do_extract() {
do_install() {
cd ${_pkg}
sed -i -e "s,\(SUBLEVEL -le\) 5,\1 20," kernel/conftest.sh
patch -Np0 -i ${FILESDIR}/linux-3.8.patch
# X driver
vinstall nvidia_drv.so 755 usr/lib/xorg/modules/drivers