mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
nvidia: Update to version 331.20
We no longer need the patches applied for the previous version so they are removed.
This commit is contained in:
parent
db3abf1c45
commit
0eeb78d74c
3 changed files with 3 additions and 51 deletions
|
@ -10,7 +10,7 @@ with stdenv.lib;
|
|||
|
||||
let
|
||||
|
||||
versionNumber = "319.60";
|
||||
versionNumber = "331.20";
|
||||
|
||||
in
|
||||
|
||||
|
@ -19,20 +19,16 @@ stdenv.mkDerivation {
|
|||
|
||||
builder = ./builder.sh;
|
||||
|
||||
patches =
|
||||
[ ./version-test.patch ]
|
||||
++ optional (!libsOnly && versionAtLeast kernelDev.version "3.11") ./nvidia-drivers-linux-3.11-incremental.patch;
|
||||
|
||||
src =
|
||||
if stdenv.system == "i686-linux" then
|
||||
fetchurl {
|
||||
url = "http://us.download.nvidia.com/XFree86/Linux-x86/${versionNumber}/NVIDIA-Linux-x86-${versionNumber}.run";
|
||||
sha256 = "0kjidkwd2b5aik74663mxk3ffq4a3fmaybq2aq1lcbfhvvh49j6j";
|
||||
sha256 = "0icpmfsppnsvk7vj0fshi3ry4s1wix435s2c8wwak47765fv1mks";
|
||||
}
|
||||
else if stdenv.system == "x86_64-linux" then
|
||||
fetchurl {
|
||||
url = "http://us.download.nvidia.com/XFree86/Linux-x86_64/${versionNumber}/NVIDIA-Linux-x86_64-${versionNumber}-no-compat32.run";
|
||||
sha256 = "0fhrxcfsw2jaycnz9gr04c9w585wydx8kpm6rjjbw19wkf8hlq3z";
|
||||
sha256 = "02503dis3ngraqv7174a4pay2x08hp697n9q74rpjjclf5k74ax1";
|
||||
}
|
||||
else throw "nvidia-x11 does not support platform ${stdenv.system}";
|
||||
|
||||
|
|
|
@ -1,25 +0,0 @@
|
|||
From 8a8647ad942c8ac5161e1335f7f3e9dbb34dbf9e Mon Sep 17 00:00:00 2001
|
||||
From: Lukas Elsner <open@mindrunner.de>
|
||||
Date: Wed, 17 Jul 2013 01:16:04 +0200
|
||||
Subject: [PATCH] replace num_physpages with totalram_pages
|
||||
|
||||
---
|
||||
kernel/nv-linux.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/kernel/nv-linux.h b/kernel/nv-linux.h
|
||||
index 4e5ed89..46c51ec 100644
|
||||
--- a/kernel/nv-linux.h
|
||||
+++ b/kernel/nv-linux.h
|
||||
@@ -957,7 +957,7 @@ static inline int nv_execute_on_all_cpus(void (*func)(void *info), void *info)
|
||||
#endif
|
||||
|
||||
#if !defined(NV_VMWARE)
|
||||
-#define NV_NUM_PHYSPAGES num_physpages
|
||||
+#define NV_NUM_PHYSPAGES totalram_pages
|
||||
#define NV_GET_CURRENT_PROCESS() current->tgid
|
||||
#define NV_IN_ATOMIC() in_atomic()
|
||||
#define NV_LOCAL_BH_DISABLE() local_bh_disable()
|
||||
--
|
||||
1.8.3.2
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
diff -Naur NVIDIA-Linux-x86_64-310.32-no-compat32/kernel/conftest.sh NVIDIA-patched/kernel/conftest.sh
|
||||
--- NVIDIA-Linux-x86_64-310.32-no-compat32/kernel/conftest.sh 2013-01-14 18:11:17.000000000 -0430
|
||||
+++ NVIDIA-patched/kernel/conftest.sh 2013-02-05 14:44:50.757999124 -0430
|
||||
@@ -1699,11 +1699,13 @@
|
||||
# kernel older than 2.6.6, that's all we require to
|
||||
# build the module.
|
||||
#
|
||||
+ VERSION=$(grep "^VERSION =" $MAKEFILE | cut -d " " -f 3)
|
||||
PATCHLEVEL=$(grep "^PATCHLEVEL =" $MAKEFILE | cut -d " " -f 3)
|
||||
SUBLEVEL=$(grep "^SUBLEVEL =" $MAKEFILE | cut -d " " -f 3)
|
||||
|
||||
- if [ -n "$PATCHLEVEL" -a $PATCHLEVEL -ge 6 \
|
||||
- -a -n "$SUBLEVEL" -a $SUBLEVEL -le 5 ]; then
|
||||
+ if [ -n "$VERSION" -a -n "$PATCHLEVEL" -a -n "$SUBLEVEL" \
|
||||
+ -a "$VERSION" -ge 3 -o "$VERSION" -eq 2 -a "$PATCHLEVEL" -ge 7 \
|
||||
+ -o "$PATCHLEVEL" -eq 6 -a "$SUBLEVEL" -ge 6 ]; then
|
||||
SELECTED_MAKEFILE=Makefile.kbuild
|
||||
RET=0
|
||||
fi
|
Loading…
Reference in a new issue