aboutsummaryrefslogtreecommitdiff
path: root/system/nvidia-legacy390-kernel/nvidia-legacy390-kernel.SlackBuild
diff options
context:
space:
mode:
authorLenard Spencer <lenardrspencer@gmai.com>2022-04-01 21:28:58 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-04-02 18:19:06 +0700
commit3a06c478054a488d7cb1689d2c4eb67b440e44fb (patch)
tree9e54b238d1b7a52b969f4c187366c15aa870e674 /system/nvidia-legacy390-kernel/nvidia-legacy390-kernel.SlackBuild
parentc36cc2eeabbf75898c48e6a01e56e2617e0c1817 (diff)
system/nvidia-legacy390-kernel: Updated for version 390.147.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/nvidia-legacy390-kernel/nvidia-legacy390-kernel.SlackBuild')
-rw-r--r--system/nvidia-legacy390-kernel/nvidia-legacy390-kernel.SlackBuild15
1 files changed, 6 insertions, 9 deletions
diff --git a/system/nvidia-legacy390-kernel/nvidia-legacy390-kernel.SlackBuild b/system/nvidia-legacy390-kernel/nvidia-legacy390-kernel.SlackBuild
index cae4b64562aa7..6a2d3facae58b 100644
--- a/system/nvidia-legacy390-kernel/nvidia-legacy390-kernel.SlackBuild
+++ b/system/nvidia-legacy390-kernel/nvidia-legacy390-kernel.SlackBuild
@@ -28,7 +28,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=nvidia-legacy390-kernel
-VERSION=${VERSION:-390.144}
+VERSION=${VERSION:-390.147}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -85,15 +85,12 @@ 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 {} \;
-# Patch for 5.14 kernel:
-patch -p0 < $CWD/kernel-5.14.patch
-# 64-bit only:
-if [ "$ARCH" = "x86_64" ]; then
- patch -p0 < $CWD/kernel-5.14-uvm.patch
-fi
-
(cd kernel || exit 1
- make SYSSRC=$KERNELPATH module || exit 1
+# patch for kernels 5.17 and newer:
+# patch -p1 < $CWD/nvidia-legacy390-pde_data.patch
+ patch -p1 < $CWD/nvidia-390xx-fix-linux-5.17.patch
+# CC=gcc suppresses an otherwise harmless "compiler mismatch" message
+ CC=gcc make SYSSRC=$KERNELPATH module || exit 1
)
mkdir -p $PKG/lib/modules/$KERNEL/kernel/drivers/video