summaryrefslogtreecommitdiff
path: root/system/nvidia-kernel/nvidia-kernel.SlackBuild
diff options
context:
space:
mode:
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