aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/nvidia-legacy390-driver/README4
-rw-r--r--system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild31
-rw-r--r--system/nvidia-legacy390-driver/nvidia-legacy390-driver.info50
3 files changed, 49 insertions, 36 deletions
diff --git a/system/nvidia-legacy390-driver/README b/system/nvidia-legacy390-driver/README
index 008cf4f54e82..bcbb279a9d4a 100644
--- a/system/nvidia-legacy390-driver/README
+++ b/system/nvidia-legacy390-driver/README
@@ -50,3 +50,7 @@ or older as it WILL corrupt the mesa and xorg installations.
Please use the script from those repos instead.
The Nvidia 390.xx series will be supported through December 2022.
+
+BIG FAT NOTE! If you are installing this on -current, please note
+that while the Nvidia legacy390 kernel module has been updated for
+the 5.17 kernel, it WILL NOT BUILD on 5.18.
diff --git a/system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild b/system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild
index 8203f2c67437..1b4c1aee21d5 100644
--- a/system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild
+++ b/system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild
@@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=nvidia-legacy390-driver
-VERSION=${VERSION:-390.147}
+VERSION=${VERSION:-390.151}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -41,14 +41,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# 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-$VERSION$MULTI-$TARGET-$BUILD$TAG.$PKGTYPE"
- exit 0
-fi
-
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -75,6 +67,20 @@ else
COMPAT32=no
fi
+if [ "$COMPAT32" = "yes" ]; then
+ MULTI="_multilib"
+else
+ MULTI=""
+fi
+
+# 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-$VERSION$MULTI-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
# Abort if an Nvidia driver is still installed:
if [ -x /usr/bin/nvidia-installer ]; then
echo -e "\n A previous Nvidia installation has been detected!"
@@ -114,6 +120,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# If you are building in a 32-bit chroot on 64-bit,
+# this is now necessary or the utilities will not build:
+export TARGET_ARCH=$TARGET
+
# Compiling the various open source apps instead of using the precompiled binaries
# Compiling nvidia-installer from source
cd $TMP/nvidia-installer-$VERSION
@@ -145,7 +155,6 @@ mv -f $PKG/usr/man/man1/nvidia-installer.1.gz $TMP/$SRCNAM
if [ "$ARCH" = "x86_64" -a "${COMPAT32}" = "yes" ]; then
COMP32="--install-compat32-libs --compat32-prefix=$PKG/usr"
- MULTI="_multilib"
mkdir $PKG/usr/lib
else
if [ ! "$ARCH" = "x86_64" ]; then
@@ -355,4 +364,4 @@ fi
# Flag multlib as needed and build package.
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION$MULTI-$TARGET-$BUILD$TAG.$PKGTYPE
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION$MULTI-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/system/nvidia-legacy390-driver/nvidia-legacy390-driver.info b/system/nvidia-legacy390-driver/nvidia-legacy390-driver.info
index f8270b7adcf8..2b8f6b08e8e5 100644
--- a/system/nvidia-legacy390-driver/nvidia-legacy390-driver.info
+++ b/system/nvidia-legacy390-driver/nvidia-legacy390-driver.info
@@ -1,30 +1,30 @@
PRGNAM="nvidia-legacy390-driver"
-VERSION="390.147"
+VERSION="390.151"
HOMEPAGE="http://www.nvidia.com"
-DOWNLOAD="https://download.nvidia.com/XFree86/Linux-x86/390.147/NVIDIA-Linux-x86-390.147.run \
- https://download.nvidia.com/XFree86/nvidia-installer/nvidia-installer-390.147.tar.bz2 \
- https://download.nvidia.com/XFree86/nvidia-modprobe/nvidia-modprobe-390.147.tar.bz2 \
- https://download.nvidia.com/XFree86/nvidia-persistenced/nvidia-persistenced-390.147.tar.bz2 \
- https://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-390.147.tar.bz2 \
- https://download.nvidia.com/XFree86/nvidia-xconfig/nvidia-xconfig-390.147.tar.bz2"
-MD5SUM="7af8932a2ae9326cfe8638fe77d62441 \
- 7a89c7de3b33778d1e185949264faa4f \
- 30aa352dfc309189847b8d3595880d0a \
- c6e5653ebd8f70c18610e80922fc14a5 \
- 681e4355fb2a9ae094732a6293a8fcb8 \
- ad3c992222943ad4d7f207217ab02ceb"
-DOWNLOAD_x86_64="https://download.nvidia.com/XFree86/Linux-x86_64/390.147/NVIDIA-Linux-x86_64-390.147.run \
- https://download.nvidia.com/XFree86/nvidia-installer/nvidia-installer-390.147.tar.bz2 \
- https://download.nvidia.com/XFree86/nvidia-modprobe/nvidia-modprobe-390.147.tar.bz2 \
- https://download.nvidia.com/XFree86/nvidia-persistenced/nvidia-persistenced-390.147.tar.bz2 \
- https://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-390.147.tar.bz2 \
- https://download.nvidia.com/XFree86/nvidia-xconfig/nvidia-xconfig-390.147.tar.bz2"
-MD5SUM_x86_64="59fafd7991f7d86e05dfcbc8a5ceaf8f \
- 7a89c7de3b33778d1e185949264faa4f \
- 30aa352dfc309189847b8d3595880d0a \
- c6e5653ebd8f70c18610e80922fc14a5 \
- 681e4355fb2a9ae094732a6293a8fcb8 \
- ad3c992222943ad4d7f207217ab02ceb"
+DOWNLOAD="https://download.nvidia.com/XFree86/Linux-x86/390.151/NVIDIA-Linux-x86-390.151.run \
+ https://download.nvidia.com/XFree86/nvidia-installer/nvidia-installer-390.151.tar.bz2 \
+ https://download.nvidia.com/XFree86/nvidia-modprobe/nvidia-modprobe-390.151.tar.bz2 \
+ https://download.nvidia.com/XFree86/nvidia-persistenced/nvidia-persistenced-390.151.tar.bz2 \
+ https://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-390.151.tar.bz2 \
+ https://download.nvidia.com/XFree86/nvidia-xconfig/nvidia-xconfig-390.151.tar.bz2"
+MD5SUM="fe68121d6846dc23ceec22ff005cc478 \
+ 0833ec7486f18361614b17cdcf5f5889 \
+ e933ec2d5023c3762ef780b4fbf1bfd3 \
+ ecf7af88fb5ba73f82adc0aae10de252 \
+ aa7929c353442027a2aa9934c7c6293d \
+ c1f634f367b56471a2c82b5c7f1c4cad"
+DOWNLOAD_x86_64="https://download.nvidia.com/XFree86/Linux-x86_64/390.151/NVIDIA-Linux-x86_64-390.151.run \
+ https://download.nvidia.com/XFree86/nvidia-installer/nvidia-installer-390.151.tar.bz2 \
+ https://download.nvidia.com/XFree86/nvidia-modprobe/nvidia-modprobe-390.151.tar.bz2 \
+ https://download.nvidia.com/XFree86/nvidia-persistenced/nvidia-persistenced-390.151.tar.bz2 \
+ https://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-390.151.tar.bz2 \
+ https://download.nvidia.com/XFree86/nvidia-xconfig/nvidia-xconfig-390.151.tar.bz2"
+MD5SUM_x86_64="4f545ea0f8da13b387f3c16d0a57b446 \
+ 0833ec7486f18361614b17cdcf5f5889 \
+ e933ec2d5023c3762ef780b4fbf1bfd3 \
+ ecf7af88fb5ba73f82adc0aae10de252 \
+ aa7929c353442027a2aa9934c7c6293d \
+ c1f634f367b56471a2c82b5c7f1c4cad"
REQUIRES="nvidia-legacy390-kernel"
MAINTAINER="Lenard Spencer"
EMAIL="lenardrspencer@gmail.com"