system/nvidia-open-kernel: Updated for version 515.76.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Lenard Spencer 2022-09-24 23:18:53 +07:00 committed by Willy Sudiarto Raharjo
parent 231238b077
commit 1df58fe33c
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
3 changed files with 5 additions and 23 deletions

View File

@ -1,15 +0,0 @@
diff -Nur kernel.orig/nvidia-drm/nvidia-drm-helper.h kernel/nvidia-drm/nvidia-drm-helper.h
--- a/kernel-open/nvidia-drm/nvidia-drm-helper.h 2022-07-20 09:42:52.000000000 -0400
+++ b/kernel-open/nvidia-drm/nvidia-drm-helper.h 2022-09-07 20:36:36.725936810 -0400
@@ -109,6 +109,11 @@
*/
#include <drm/drm_crtc.h>
+#include <linux/version.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 0, 0))
+#include <drm/drm_framebuffer.h>
+#endif
+
#if defined(drm_for_each_plane)
#define nv_drm_for_each_plane(plane, dev) \
drm_for_each_plane(plane, dev)

View File

@ -27,8 +27,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=nvidia-open-kernel
VERSION=${VERSION:-515.65.01}
BUILD=${BUILD:-3}
VERSION=${VERSION:-515.76}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -83,9 +83,6 @@ 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-open-kernel-6.0.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.

View File

@ -1,10 +1,10 @@
PRGNAM="nvidia-open-kernel"
VERSION="515.65.01"
VERSION="515.76"
HOMEPAGE="https://github.com/NVIDIA/open-gpu-kernel-modules/"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
DOWNLOAD_x86_64="https://download.nvidia.com/XFree86/NVIDIA-kernel-module-source/NVIDIA-kernel-module-source-515.65.01.tar.xz"
MD5SUM_x86_64="ecab531eff6da633fa0715edca39cec5"
DOWNLOAD_x86_64="https://download.nvidia.com/XFree86/NVIDIA-kernel-module-source/NVIDIA-kernel-module-source-515.76.tar.xz"
MD5SUM_x86_64="1b8f9e27a2de0e3e5a1e8992760c16eb"
REQUIRES=""
MAINTAINER="Lenard Spencer"
EMAIL="lenardrspencer@gmail.com"