diff options
Diffstat (limited to 'system/nvidia-kernel')
-rw-r--r-- | system/nvidia-kernel/README | 12 | ||||
-rw-r--r-- | system/nvidia-kernel/nvidia-kernel.SlackBuild | 33 | ||||
-rw-r--r-- | system/nvidia-kernel/nvidia-kernel.info | 8 |
3 files changed, 31 insertions, 22 deletions
diff --git a/system/nvidia-kernel/README b/system/nvidia-kernel/README index 35109efbf0..2af2536f50 100644 --- a/system/nvidia-kernel/README +++ b/system/nvidia-kernel/README @@ -5,11 +5,11 @@ To build the package for a kernel different from the running one, start the script setting the KERNEL variable as in KERNEL=4.6.3 ./nvidia-kernel.SlackBuild -A default config file is placed at - /usr/share/X11/xorg.conf.d/10-nvidia.conf -to make sure that X loads the nvidia module. -If you need to make changes, copy that file to /etc/X11/xorg.conf.d/ -and edit the copy. You do not need this file at all if you have a -proper and complete xorg.conf. +A default config file is placed at + /usr/share/X11/xorg.conf.d/10-nvidia.conf +to make sure that X loads the nvidia module. If you need to make +changes, move that file to /etc/X11/xorg.conf.d/ and edit the copy. +You do not need this file at all if you have a proper and complete +xorg.conf. The xf86-video-nouveau-blacklist package from /extra is required. diff --git a/system/nvidia-kernel/nvidia-kernel.SlackBuild b/system/nvidia-kernel/nvidia-kernel.SlackBuild index 41a30bcdb2..056961d308 100644 --- a/system/nvidia-kernel/nvidia-kernel.SlackBuild +++ b/system/nvidia-kernel/nvidia-kernel.SlackBuild @@ -1,10 +1,10 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for nvidia-kernel # Copyright 2007-2011 Heinz Wiesinger, Amsterdam, The Netherlands # Copyright 2012-2019 Edward W. Koenig, Vancouver, WA, USA -# Updates cpyright 2020 Lenard Spencer, Orlando, FL, USA +# Updates copyright 2020-2022 Lenard Spencer, Orlando, FL, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,12 +26,13 @@ # Thanks to Robby Workman for suggestions to improve this script. -# see nvidia-driver/changelog.txt +cd $(dirname $0) ; CWD=$(pwd) PRGNAM=nvidia-kernel -VERSION=${VERSION:-460.56} +VERSION=${VERSION:-550.76} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} KERNEL=${KERNEL:-$(uname -r)} KERNELPATH=${KERNELPATH:-/lib/modules/${KERNEL}/build} @@ -59,9 +60,16 @@ unset ARCH SRCNAM=NVIDIA-Linux-$TARGET-${VERSION} -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$PKGVER-$TARGET-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} -PKG=${PKG:-$TMP/package-$PRGNAM} +PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} rm -rf $PKG @@ -78,17 +86,18 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; (cd kernel || exit 1 - make SYSSRC=$KERNELPATH module || exit 1 + +# CC=${CC:-gcc} suppresses an otherwise harmless "compiler mismatch" +# message. If you custom-build your kernel with clang, +# then pass CC=clang to this script. + CC=${CC:-gcc} make SYSSRC=$KERNELPATH module || exit 1 ) mkdir -p $PKG/lib/modules/$KERNEL/kernel/drivers/video install -m 0664 kernel/nvidia.ko $PKG/lib/modules/$KERNEL/kernel/drivers/video/ install -m 0664 kernel/nvidia-modeset.ko $PKG/lib/modules/$KERNEL/kernel/drivers/video/ install -m 0664 kernel/nvidia-drm.ko $PKG/lib/modules/$KERNEL/kernel/drivers/video/ -# 32-bit doesn't have nvidia-uvm -if [ "$TARGET" = "x86_64" ]; then - install -m 0664 kernel/nvidia-uvm.ko $PKG/lib/modules/$KERNEL/kernel/drivers/video/ -fi +install -m 0664 kernel/nvidia-uvm.ko $PKG/lib/modules/$KERNEL/kernel/drivers/video/ mkdir -p $PKG/usr/share/X11/xorg.conf.d/ cat $TMP/$SRCNAM/nvidia-drm-outputclass.conf > $PKG/usr/share/X11/xorg.conf.d/10-nvidia.conf @@ -101,4 +110,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc sed "s%@KERNEL@%$KERNEL%" $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKGVER-$TARGET-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKGVER-$TARGET-$BUILD$TAG.$PKGTYPE diff --git a/system/nvidia-kernel/nvidia-kernel.info b/system/nvidia-kernel/nvidia-kernel.info index 626654b280..dddbed4cb7 100644 --- a/system/nvidia-kernel/nvidia-kernel.info +++ b/system/nvidia-kernel/nvidia-kernel.info @@ -1,10 +1,10 @@ PRGNAM="nvidia-kernel" -VERSION="460.56" -HOMEPAGE="http://www.nvidia.com" +VERSION="550.76" +HOMEPAGE="https://www.nvidia.com" DOWNLOAD="UNSUPPORTED" MD5SUM="" -DOWNLOAD_x86_64="https://download.nvidia.com/XFree86/Linux-x86_64/460.56/NVIDIA-Linux-x86_64-460.56.run" -MD5SUM_x86_64="5851075ac80f5b5f0415ef5e31327e51" +DOWNLOAD_x86_64="https://download.nvidia.com/XFree86/Linux-x86_64/550.76/NVIDIA-Linux-x86_64-550.76.run" +MD5SUM_x86_64="5f8b7b1f439e5ded0a092bcb22e856a6" REQUIRES="" MAINTAINER="Lenard Spencer" EMAIL="lenardrspencer@gmail.com" |