nvidia: add patch for linux>=3.8.
This commit is contained in:
parent
30932bf9ef
commit
03277b9560
2 changed files with 12 additions and 2 deletions
10
srcpkgs/nvidia/files/linux-3.8.patch
Normal file
10
srcpkgs/nvidia/files/linux-3.8.patch
Normal 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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue