commit a1f194e0473f18c076b80fff585f9fe633f2670e
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Tue Jun 21 12:04:54 2022 +0200
Initial import
.gitignore | 1 +
nvidia-open-kmod.spec | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 87 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..762d295 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+open-gpu-kernel-modules-*.tar.gz
diff --git a/nvidia-open-kmod.spec b/nvidia-open-kmod.spec
new file mode 100644
index 0000000..e228f9e
--- /dev/null
+++ b/nvidia-open-kmod.spec
@@ -0,0 +1,85 @@
+#
+# SPDX-FileCopyrightText: 2022 Nicolas Chauvet <kwizart(a)gmail.com>
+# SPDX-License-Identifier: AGPL-3.0
+#
+
+%if 0%{?fedora}
+%global buildforkernels akmod
+%global debug_package %{nil}
+%endif
+
+Name: nvidia-open-kmod
+Epoch: 3
+Version: 515.48.07
+# Taken over by kmodtool
+Release: 3%{?dist}
+Summary: NVIDIA open display driver kernel module
+License: GPLv2 and MIT
+URL:
https://github.com/NVIDIA/open-gpu-kernel-modules
+
+Source0: %{url}/archive/%{version}/open-gpu-kernel-modules-%{version}.tar.gz
+Source11: nvidia-open-kmodtool-excludekernel-filterfile
+
+ExclusiveArch: x86_64 aarch64 ppc64le
+
+# get the needed BuildRequires (in parts depending on what we build for)
+%global AkmodsBuildRequires %{_bindir}/kmodtool
+BuildRequires: %{AkmodsBuildRequires}
+
+%{!?kernels:BuildRequires: gcc, elfutils-libelf-devel,
buildsys-build-rpmfusion-kerneldevpkgs-%{?buildforkernels:%{buildforkernels}}%{!?buildforkernels:current}-%{_target_cpu}
}
+# kmodtool does its magic here
+%{expand:%(kmodtool --target %{_target_cpu} --repo rpmfusion --kmodname %{name}
--filterfile %{SOURCE11} %{?buildforkernels:--%{buildforkernels}} %{?kernels:--for-kernels
"%{?kernels}"} 2>/dev/null) }
+
+%description
+The nvidia open %{version} display driver kernel module for kernel %{kversion}.
+
+%prep
+# error out if there was something wrong with kmodtool
+%{?kmodtool_check}
+# print kmodtool output for debugging purposes:
+kmodtool --target %{_target_cpu} --repo rpmfusion --kmodname %{name} --filterfile
%{SOURCE11} %{?buildforkernels:--%{buildforkernels}} %{?kernels:--for-kernels
"%{?kernels}"} 2>/dev/null
+%setup -q -c
+# patch loop
+%if 0%{?_without_nvidia_kmod_patches:1}
+# placeholder
+%endif
+
+for kernel_version in %{?kernel_versions} ; do
+ cp -a open-gpu-kernel-modules-%{version} _kmod_build_${kernel_version%%___*}
+done
+
+%build
+%if 0%{?_without_nvidia_uvm:1}
+export NV_EXCLUDE_KERNEL_MODULES="${NV_EXCLUDE_KERNEL_MODULES} nvidia_uvm "
+%endif
+%if 0%{?_without_nvidia_modeset:1}
+export NV_EXCLUDE_KERNEL_MODULES="${NV_EXCLUDE_KERNEL_MODULES} nvidia_modeset
"
+%endif
+
+for kernel_version in %{?kernel_versions}; do
+ pushd _kmod_build_${kernel_version%%___*}/
+ make V=1 %{?_smp_mflags} CC=gcc \
+ KERNEL_UNAME="${kernel_version%%___*}"
SYSSRC="${kernel_version##*___}" \
+ IGNORE_CC_MISMATCH=1 IGNORE_XEN_PRESENCE=1 IGNORE_PREEMPT_RT_PRESENCE=1 \
+ modules
+ popd
+done
+
+
+%install
+for kernel_version in %{?kernel_versions}; do
+ mkdir -p
%{buildroot}/%{kmodinstdir_prefix}/${kernel_version%%___*}/%{kmodinstdir_postfix}/
+ install -D -m 0755 _kmod_build_${kernel_version%%___*}/kernel-open/nvidia*.ko \
+
%{buildroot}/%{kmodinstdir_prefix}/${kernel_version%%___*}/%{kmodinstdir_postfix}/
+done
+%{?akmod_install}
+
+
+
+%changelog
+* Wed Jun 01 2022 Nicolas Chauvet <kwizart(a)gmail.com> - 3:515.48.07-3
+- Switch to kernel-open
+
+* Wed May 11 2022 Leigh Scott <leigh123linux(a)gmail.com> - 3:515.43.04-1
+- Update to 515.43.04 beta
+
diff --git a/sources b/sources
index e69de29..40af12f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (open-gpu-kernel-modules-515.48.07.tar.gz) =
b5f8b608343c93e0755d0c847d472a68f773c9d9ffb268462489d3d4aad3ab0abe8fb11860ec637abea135bda4eef55c4ffd00d4f817fa48161b5908a09bdf34