diff options
author | Heinz Wiesinger <pprkut@liwjatan.at> | 2010-08-22 11:07:34 -0400 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-08-23 00:53:39 -0500 |
commit | e8dd07e3f9632fa7763e658f6ceaa524e3a31d5b (patch) | |
tree | f249407f962c84c6b4d529c555fd0a2e01c7948f /system/nvidia-kernel/nvidia-kernel.SlackBuild | |
parent | b46d83c9226ceeca188e69ce3ce0b34d1a19fbcd (diff) |
system/nvidia-kernel: Updated for version 256.44.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/nvidia-kernel/nvidia-kernel.SlackBuild')
-rw-r--r-- | system/nvidia-kernel/nvidia-kernel.SlackBuild | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/system/nvidia-kernel/nvidia-kernel.SlackBuild b/system/nvidia-kernel/nvidia-kernel.SlackBuild index c3e18b93c5527..86de70674cbc1 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 |