aboutsummaryrefslogtreecommitdiff
path: root/system/nvidia-kernel/nvidia-kernel.SlackBuild
diff options
context:
space:
mode:
authorLenard Spencer <lenardrspencer@gmail.com>2024-02-07 06:36:51 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-02-10 16:09:42 +0700
commit8ef1adcb714dafd5f9c3f16577f743a4a4bf6e42 (patch)
tree3ca6c8e8fbb894e85c2a94e2d34c2b8480dfb128 /system/nvidia-kernel/nvidia-kernel.SlackBuild
parent6c9b208ad78ce84b90bd424a04117d72325130cf (diff)
system/nvidia-kernel: Add patch for 6.x kernels.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/nvidia-kernel/nvidia-kernel.SlackBuild')
-rw-r--r--system/nvidia-kernel/nvidia-kernel.SlackBuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/nvidia-kernel/nvidia-kernel.SlackBuild b/system/nvidia-kernel/nvidia-kernel.SlackBuild
index 6dbd1f281935a..4754352a45c10 100644
--- a/system/nvidia-kernel/nvidia-kernel.SlackBuild
+++ b/system/nvidia-kernel/nvidia-kernel.SlackBuild
@@ -30,7 +30,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=nvidia-kernel
VERSION=${VERSION:-535.154.05}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -87,6 +87,9 @@ find -L . \
(cd kernel || exit 1
+# Patch for latest 6.x kernels:
+patch -p2 < $CWD/nvidia-rcu_read_lock-unlock.patch
+
# 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.