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.SlackBuild16
1 files changed, 7 insertions, 9 deletions
diff --git a/system/nvidia-kernel/nvidia-kernel.SlackBuild b/system/nvidia-kernel/nvidia-kernel.SlackBuild
index c3e18b93c5..86de70674c 100644
--- a/system/nvidia-kernel/nvidia-kernel.SlackBuild
+++ b/system/nvidia-kernel/nvidia-kernel.SlackBuild
@@ -25,7 +25,7 @@
# Thanks to Robby Workman for suggestions to improve this script.
PRGNAM=nvidia-kernel
-VERSION=195.36.15
+VERSION=256.44
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -34,27 +34,28 @@ KERNELPATH=${KERNELPATH:-/lib/modules/${KERNEL}/build}
PKGVER=${VERSION}_$(echo $KERNEL | tr - _)
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
if [ "$ARCH" = "i486" ]; then
TARGET="x86"
+ SRCSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
TARGET="x86"
+ SRCSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
TARGET="x86_64"
+ SRCSUFFIX="-no-compat32"
fi
unset ARCH
-SRCNAM=NVIDIA-Linux-$TARGET-$VERSION-pkg0
+SRCNAM=NVIDIA-Linux-$TARGET-${VERSION}${SRCSUFFIX}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
@@ -70,18 +71,15 @@ cd $SRCNAM || exit 1
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-cd usr/src/nv/ || exit 1
+cd kernel || exit 1
make SYSSRC=$KERNELPATH module || exit 1
-# It seems better as DESTDIR doesn't work here, to install the module manually.
-#make SYSSRC=$KERNELPATH install DESTDIR=$PKG || exit 1
-
mkdir -p $PKG/lib/modules/$KERNEL/kernel/drivers/video
install -m 0664 nvidia.ko $PKG/lib/modules/$KERNEL/kernel/drivers/video/
mkdir -p $PKG/usr/doc/$PRGNAM-$PKGVER
-cp -a README $PKG/usr/doc/$PRGNAM-$PKGVER
+cp -a README.template $PKG/usr/doc/$PRGNAM-$PKGVER
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$PKGVER/$PRGNAM.SlackBuild
mkdir -p $PKG/install