commit aa3e2abe04abf94d62145dd5507cc1212b558387
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Thu Apr 16 10:04:49 2020 +0100
Patch for kernel-5.7rc
kernel-5.7.patch | 22 ++++++++++++++++++++++
nvidia-kmod.spec | 7 ++++++-
2 files changed, 28 insertions(+), 1 deletion(-)
---
diff --git a/kernel-5.7.patch b/kernel-5.7.patch
new file mode 100644
index 0000000..a6821b5
--- /dev/null
+++ b/kernel-5.7.patch
@@ -0,0 +1,22 @@
+diff --git a/kernel/conftest.sh b/kernel/conftest.sh
+index 8f807a1..af29636 100755
+--- a/kernel/conftest.sh
++++ b/kernel/conftest.sh
+@@ -143,6 +143,7 @@ test_headers() {
+ FILES="$FILES video/nv_internal.h"
+ FILES="$FILES asm/book3s/64/hash-64k.h"
+ FILES="$FILES asm/set_memory.h"
++ FILES="$FILES asm/pgtable.h"
+ FILES="$FILES asm/prom.h"
+ FILES="$FILES asm/powernv.h"
+ FILES="$FILES asm/tlbflush.h"
+@@ -466,6 +467,9 @@ compile_test() {
+ # It does not exist on all architectures.
+ #
+ CODE="
++ #if defined(NV_ASM_PGTABLE_H_PRESENT)
++ #include <asm/pgtable.h>
++ #endif
+ #if defined(NV_ASM_SET_MEMORY_H_PRESENT)
+ #include <asm/set_memory.h>
+ #else
diff --git a/nvidia-kmod.spec b/nvidia-kmod.spec
index a4e3523..00cd42b 100644
--- a/nvidia-kmod.spec
+++ b/nvidia-kmod.spec
@@ -12,12 +12,13 @@ Name: nvidia-kmod
Epoch: 3
Version: 440.82
# Taken over by kmodtool
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: NVIDIA display driver kernel module
License: Redistributable, no modification permitted
URL:
http://www.nvidia.com/
Source11: nvidia-kmodtool-excludekernel-filterfile
+Patch0: kernel-5.7.patch
# needed for plague to make sure it builds for i586 and i686
ExclusiveArch: x86_64
@@ -41,6 +42,7 @@ kmodtool --target %{_target_cpu} --repo rpmfusion --kmodname %{name}
--filterf
%setup -T -c
tar --use-compress-program xz -xf
%{_datadir}/%{name}-%{version}/%{name}-%{version}-%{_target_cpu}.tar.xz
# patch loop
+%patch0 -p1
for kernel_version in %{?kernel_versions} ; do
cp -a kernel _kmod_build_${kernel_version%%___*}
@@ -68,6 +70,9 @@ done
%changelog
+* Wed Apr 15 2020 Leigh Scott <leigh123linux(a)gmail.com> - 3:440.82-2
+- Patch for kernel-5.7rc
+
* Tue Apr 07 2020 leigh123linux <leigh123linux(a)googlemail.com> - 3:440.82-1
- Update to 440.82 release