aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLenard Spencer <lenardrspencer@gmail.com>2022-09-03 02:46:48 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-09-03 17:58:47 +0700
commit1cdba5325372b4a9cc65d2a8d30ac830d32d50db (patch)
tree40e92a5683d9ddc78df874cb09f19890cc9c6913
parenta2ac668abd5d107e510d52e677cae9594e8a0a84 (diff)
system/nvidia-kernel: Patch for 6.0 kernel.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--system/nvidia-kernel/nvidia-kernel-6.0.patch9
-rw-r--r--system/nvidia-kernel/nvidia-kernel.SlackBuild5
2 files changed, 13 insertions, 1 deletions
diff --git a/system/nvidia-kernel/nvidia-kernel-6.0.patch b/system/nvidia-kernel/nvidia-kernel-6.0.patch
new file mode 100644
index 0000000000000..4a9161b59a070
--- /dev/null
+++ b/system/nvidia-kernel/nvidia-kernel-6.0.patch
@@ -0,0 +1,9 @@
+--- a/kernel/nvidia-drm/nvidia-drm-helper.c 2022-07-20 16:42:53.000000000 +0300
++++ b/kernel/nvidia-drm/nvidia-drm-helper.c 2022-08-20 16:32:34.836742336 +0300
+@@ -28,6 +28,7 @@
+ */
+
+ #include "nvidia-drm-helper.h"
++#include <drm/drm_framebuffer.h>
+
+ #include "nvmisc.h"
diff --git a/system/nvidia-kernel/nvidia-kernel.SlackBuild b/system/nvidia-kernel/nvidia-kernel.SlackBuild
index 11d27b6747b9a..005f5eda1229c 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:-515.65.01}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -85,6 +85,9 @@ 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 6.0 kernel:
+patch -p1 < $CWD/nvidia-kernel-6.0.patch
+
(cd kernel || exit 1
# CC=${CC:-gcc} suppresses an otherwise harmless "compiler mismatch"
# message. If you custom-build your kernel with clang,