From 1cdba5325372b4a9cc65d2a8d30ac830d32d50db Mon Sep 17 00:00:00 2001 From: Lenard Spencer Date: Sat, 3 Sep 2022 02:46:48 +0100 Subject: system/nvidia-kernel: Patch for 6.0 kernel. Signed-off-by: Dave Woodfall Signed-off-by: Willy Sudiarto Raharjo --- system/nvidia-kernel/nvidia-kernel-6.0.patch | 9 +++++++++ system/nvidia-kernel/nvidia-kernel.SlackBuild | 5 ++++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 system/nvidia-kernel/nvidia-kernel-6.0.patch 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 + + #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, -- cgit v1.2.3