summaryrefslogtreecommitdiffstats
path: root/system/nvidia-kernel/nvidia-kernel.SlackBuild
diff options
context:
space:
mode:
author Edward Koenig2011-06-19 01:55:37 +0200
committer Robby Workman2011-06-19 01:55:37 +0200
commit33b360700e18169727236bc367f1e55f341b9ada (patch)
tree6c761bd3206522193ad44357d7b7ed1cc77925e2 /system/nvidia-kernel/nvidia-kernel.SlackBuild
parentdc95f30c4b5d749ec5038db2bfd72684b557d3f0 (diff)
downloadslackbuilds-33b360700e18169727236bc367f1e55f341b9ada.tar.gz
system/nvidia-kernel: Updated for version 270.41.19.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/nvidia-kernel/nvidia-kernel.SlackBuild')
-rw-r--r--system/nvidia-kernel/nvidia-kernel.SlackBuild35
1 files changed, 32 insertions, 3 deletions
diff --git a/system/nvidia-kernel/nvidia-kernel.SlackBuild b/system/nvidia-kernel/nvidia-kernel.SlackBuild
index ed556ddd90..d3991c97b2 100644
--- a/system/nvidia-kernel/nvidia-kernel.SlackBuild
+++ b/system/nvidia-kernel/nvidia-kernel.SlackBuild
@@ -23,9 +23,16 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Thanks to Robby Workman for suggestions to improve this script.
+#
+# ChangeLog
+# ------------------------------------------------------------------------------
+# 1.0 20-MAR-2011 New Maintainer: Edward W. Koenig <kingbeowulf@gmail.com>
+# 1.1 10-APR-2011 updated to new version, testing 13.37rc4.6692
+# 1.2 27-MAY-2011 new version, blacklist nouveau, fix ups, tested 13.37-stable
+#
PRGNAM=nvidia-kernel
-VERSION=260.19.29
+VERSION=270.41.19
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -50,7 +57,8 @@ elif [ "$ARCH" = "i686" ]; then
SRCSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
TARGET="x86_64"
- SRCSUFFIX="-no-compat32"
+ SRCSUFFIX=${SRCSUFFIX:-}
+# pass SRCSUFFIX="-no-compat32" if you d/l that version.
fi
unset ARCH
@@ -76,7 +84,28 @@ cd kernel || exit 1
make SYSSRC=$KERNELPATH module || exit 1
mkdir -p $PKG/lib/modules/$KERNEL/kernel/drivers/video
-install -m 0664 nvidia.ko $PKG/lib/modules/$KERNEL/kernel/drivers/video/
+install -m 0644 nvidia.ko $PKG/lib/modules/$KERNEL/kernel/drivers/video/
+
+# Blacklist the nouveau driver (ok, I know this will annoy some using
+# nvidia-switch and you need to reboot for this to work)...
+mkdir -p $PKG/etc/modprobe.d
+cat <<EOF > $PKG/etc/modprobe.d/blacklist-nouveau.conf
+blacklist nouveau
+EOF
+
+#... AND make sure the nvidia driver is specified to
+# automagically load the correct driver, since I always forget. If you
+# create a proper full xorg.conf, then this isn't needed.
+mkdir -p $PKG/etc/X11/xorg.conf.d
+cat << EOF > $PKG/etc/X11/xorg.conf.d/device.conf
+Section "Device"
+ Identifier "Device0"
+ Driver "nvidia"
+ VendorName "Nvidia Corporation"
+ BoardName ""
+ Option "CoolBits" "1"
+EndSection
+EOF
mkdir -p $PKG/usr/doc/$PRGNAM-$PKGVER
cp -a README.template $PKG/usr/doc/$PRGNAM-$PKGVER