|
|
@ -3,7 +3,7 @@ |
|
|
|
# Slackware build script for nvidia-legacy390-driver |
|
|
|
|
|
|
|
# Copyright 2012-2019 Edward W. Koenig, Vancouver, WA, USA |
|
|
|
# Copyright 2020 Lenard Spencer, Orlando, FL, USA |
|
|
|
# Copyright 2020-2023 Lenard Spencer, Orlando, FL, USA |
|
|
|
# All rights reserved. |
|
|
|
# |
|
|
|
# Redistribution and use of this script, with or without modification, is |
|
|
@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) |
|
|
|
|
|
|
|
PRGNAM=nvidia-legacy390-driver |
|
|
|
VERSION=${VERSION:-390.157} |
|
|
|
BUILD=${BUILD:-1} |
|
|
|
BUILD=${BUILD:-2} |
|
|
|
TAG=${TAG:-_SBo} |
|
|
|
PKGTYPE=${PKGTYPE:-tgz} |
|
|
|
|
|
|
@ -97,7 +97,6 @@ mkdir -p $TMP $PKG $OUTPUT $PKG/install |
|
|
|
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/xorg/modules/{drivers,extensions} \ |
|
|
|
$PKG/etc/OpenCL/vendors/ $PKG/usr/{bin,doc,man/man1} \ |
|
|
|
$PKG/usr/share/{applications,nvidia,pixmaps,egl/egl_external_platform.d} \ |
|
|
|
$PKG/usr/include/GL $PKG/etc/vulkan/icd.d $PKG/etc/X11/xorg.conf.d \ |
|
|
|
$PKG/etc/X11/glvnd/egl_vendor.d $PKG/var/log |
|
|
|
|
|
|
|
|
|
|
@ -134,6 +133,10 @@ cd $TMP/nvidia-installer-$VERSION |
|
|
|
# Let's try to remove the conflicting files and GPU detection |
|
|
|
patch -p0 < $CWD/skip_conflict-GPU_detect.patch |
|
|
|
|
|
|
|
# Install various files in $PKG instead of the root filesystem: |
|
|
|
sed -i "s|/etc/vulkan|$PKG/etc/vulkan|" files.c |
|
|
|
sed -i "s|\"/etc\"|\"$PKG/etc\"|" nvidia-installer.h |
|
|
|
|
|
|
|
chown -R root:root . |
|
|
|
find -L . \ |
|
|
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ |
|
|
@ -184,11 +187,13 @@ cd $TMP/$SRCNAM |
|
|
|
--log-file-name=$PKG/var/log/nvidia-installer.log \ |
|
|
|
--egl-external-platform-config-path=$PKG/usr/share/egl/egl_external_platform.d \ |
|
|
|
--no-nvidia-modprobe \ |
|
|
|
--no-install-libglvnd \ |
|
|
|
$COMP32 |
|
|
|
|
|
|
|
# Move ICDs to $PKG and cleanup (no switch option in installer?) |
|
|
|
mv /etc/OpenCL/vendors/nvidia.icd $PKG/etc/OpenCL/vendors/nvidia.icd |
|
|
|
mv /etc/vulkan/icd.d/nvidia_icd.json $PKG/etc/vulkan/icd.d/nvidia_icd.json |
|
|
|
# Remove a /var/lib/nvidia entry installed by nvidia-installer but |
|
|
|
# no longer needed (caused the "failed to remove some directories" |
|
|
|
# warning message): |
|
|
|
rm -rf /var/lib/nvidia |
|
|
|
|
|
|
|
# Compile utilites from source, replacing the precompiled versions |
|
|
|
# |
|
|
@ -280,7 +285,7 @@ cd $PKG/usr/lib$LIBDIRSUFFIX |
|
|
|
rm libOpenCL.so* |
|
|
|
rm -f xorg/modules/libwfb.so |
|
|
|
if [ -e xorg/modules/extensions/libglx.so ]; then |
|
|
|
rm -f xorg/modules/extionsions/libglx.so |
|
|
|
rm -f xorg/modules/extensions/libglx.so |
|
|
|
fi |
|
|
|
cd - |
|
|
|
|
|
|
@ -294,7 +299,7 @@ if [ "$ARCH" = "x86_64" -a "${COMPAT32}" = "yes" ]; then |
|
|
|
# so ignoring for now. |
|
|
|
fi |
|
|
|
|
|
|
|
# Remove xorg conf file since we handle that in nvidia-legacy390-kernel |
|
|
|
# Remove xorg.conf.d file since we handle that in nvidia-legacy390-kernel |
|
|
|
rm -rf $PKG/etc/X11/xorg.conf.d |
|
|
|
|
|
|
|
cd $TMP/$SRCNAM |
|
|
|