|
|
|
|
@ -21,14 +21,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: %{kmodname}-kmod
|
|
|
|
|
Version: 610.57.04
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Version: 570.153.02
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Summary: Kernel module (kmod) for NVIDIA GPU hardware
|
|
|
|
|
|
|
|
|
|
License: GPL-2.0-only and MIT
|
|
|
|
|
URL: https://github.com/NVIDIA/open-gpu-kernel-modules
|
|
|
|
|
Source0: %{url}/archive/%{version}/open-gpu-kernel-modules-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
Patch0: 0001-kernel-open-nvidia-drm-Enable-kernel-mode-setting-by.patch
|
|
|
|
|
|
|
|
|
|
# For kmodtool
|
|
|
|
|
Source10: kmod-%{kmodname}.spec.preamble
|
|
|
|
|
|
|
|
|
|
@ -36,6 +38,9 @@ Source10: kmod-%{kmodname}.spec.preamble
|
|
|
|
|
Source20: kmp-local-override.macros
|
|
|
|
|
Source21: kmodtool-local-override
|
|
|
|
|
|
|
|
|
|
# patch dependencies
|
|
|
|
|
BuildRequires: git-core
|
|
|
|
|
|
|
|
|
|
# kernel module package macros were split out sometime after EL7...
|
|
|
|
|
BuildRequires: kernel-rpm-macros
|
|
|
|
|
# kmod dependencies
|
|
|
|
|
@ -46,7 +51,7 @@ BuildRequires: gcc
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
|
|
# Depend on nvidia/negativo17 kmod support packaging
|
|
|
|
|
# Depend on negativo17 kmod support packaging
|
|
|
|
|
Requires: nvidia-kmod-common = 3:%{version}
|
|
|
|
|
|
|
|
|
|
# Only supported architectures for the driver
|
|
|
|
|
@ -62,47 +67,16 @@ This package contains the kernel modules for providing
|
|
|
|
|
hardware support for the NVIDIA Turing (GTX 16/RTX 20)
|
|
|
|
|
and newer models of GPU hardware.
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license COPYING
|
|
|
|
|
%doc README.md
|
|
|
|
|
%dir %{_sharedstatedir}/%{name}
|
|
|
|
|
%ghost %{_sharedstatedir}/%{name}/initramfs-rebuilt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%posttrans
|
|
|
|
|
# The open modules need the GSP firmware (shipped by nvidia-kmod-common) inside
|
|
|
|
|
# the initramfs, or early load fails with "gsp_*.bin failed with error -2".
|
|
|
|
|
# Some packages regenerate the initramfs before that firmware is on disk; this
|
|
|
|
|
# scriptlet runs after every payload has been unpacked, so a rebuild here is
|
|
|
|
|
# guaranteed to capture it. Equivalent to the manual "dracut -f".
|
|
|
|
|
#
|
|
|
|
|
# Only required on the initial install. The stamp below is a ghost file (absent
|
|
|
|
|
# from the payload), so it exists only once we create it here; it persists
|
|
|
|
|
# across upgrades (the new package owns it too) and is removed on erase. Net
|
|
|
|
|
# effect: the rebuild runs on a first install and again after a full
|
|
|
|
|
# removal+reinstall, but not on plain upgrades or reinstalls.
|
|
|
|
|
if [ ! -e %{_sharedstatedir}/%{name}/initramfs-rebuilt ]; then
|
|
|
|
|
if [ -x %{_bindir}/dracut ]; then
|
|
|
|
|
%{_bindir}/dracut --force --regenerate-all --quiet || :
|
|
|
|
|
touch %{_sharedstatedir}/%{name}/initramfs-rebuilt
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
# let's make sure we don't publish unsigned builds, that would be bad
|
|
|
|
|
%if "%{modsign_os}" != "almalinux-nvidia-signing"
|
|
|
|
|
%{error:modsign_os macro not set to almalinux-nvidia-signing, exiting}
|
|
|
|
|
%endif
|
|
|
|
|
%autosetup -n open-gpu-kernel-modules-%{version} -S git_am
|
|
|
|
|
|
|
|
|
|
%autosetup -n open-gpu-kernel-modules-%{version}
|
|
|
|
|
|
|
|
|
|
for flavor in %{flavors_to_build}; do
|
|
|
|
|
cp -a ../open-gpu-kernel-modules-%{version} ../%{name}-%{version}-kmodbuild-$flavor
|
|
|
|
|
mv ../%{name}-%{version}-kmodbuild-$flavor .
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# This module is useless
|
|
|
|
|
export NV_EXCLUDE_KERNEL_MODULES=nvidia-peermem
|
|
|
|
|
@ -113,8 +87,6 @@ for flavor in %{flavors_to_build}; do
|
|
|
|
|
popd
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
find . -name "*.ko" -type f -exec chmod u+x '{}' +
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
# Set correct install paths
|
|
|
|
|
@ -129,110 +101,16 @@ for flavor in %{flavors_to_build}; do
|
|
|
|
|
popd
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# Own the state directory and pre-create the stamp so the ghost entry is
|
|
|
|
|
# registered correctly. The stamp is a ghost file, so its contents are not
|
|
|
|
|
# shipped; it is (re)created by the posttrans scriptlet on the target system.
|
|
|
|
|
install -d %{buildroot}%{_sharedstatedir}/%{name}
|
|
|
|
|
touch %{buildroot}%{_sharedstatedir}/%{name}/initramfs-rebuilt
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license COPYING
|
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Aug 04 2026 almalinux-bot-nvidia <almalinux-bot-nvidia@almalinux.org> - 610.57.04-1
|
|
|
|
|
- Update to 610.57.04
|
|
|
|
|
|
|
|
|
|
* Fri Jul 24 2026 Eduard Abdullin <eabdullin@almalinux.org> - 610.43.02-7
|
|
|
|
|
- Rebuild for new kernel
|
|
|
|
|
|
|
|
|
|
* Sun Jul 19 2026 Jonathan Wright <jonathan@almalinux.org> - 610.43.02-6
|
|
|
|
|
- Rebuild the initramfs on initial install so the GSP firmware is included,
|
|
|
|
|
avoiding a manual dracut -f after install
|
|
|
|
|
|
|
|
|
|
* Mon Jul 13 2026 Eduard Abdullin <eabdullin@almalinux.org> - 610.43.02-5
|
|
|
|
|
- Rebuild for new kernel
|
|
|
|
|
|
|
|
|
|
* Mon Jun 22 2026 Eduard Abdullin <eabdullin@almalinux.org> - 610.43.02-4
|
|
|
|
|
- Rebuild for new kernel
|
|
|
|
|
|
|
|
|
|
* Mon Jun 15 2026 Eduard Abdullin <eabdullin@almalinux.org> - 610.43.02-3
|
|
|
|
|
- Rebuild for new kernel
|
|
|
|
|
|
|
|
|
|
* Tue Jun 09 2026 Andrew Lukoshko <alukoshko@almalinux.org> - 610.43.02-2
|
|
|
|
|
- Rebuild for new kernel
|
|
|
|
|
|
|
|
|
|
* Wed May 27 2026 almalinux-bot-nvidia <almalinux-bot-nvidia@almalinux.org> - 610.43.02-1
|
|
|
|
|
- Update to 610.43.02
|
|
|
|
|
|
|
|
|
|
* Mon May 25 2026 Andrew Lukoshko <alukoshko@almalinux.org> - 595.71.05-2
|
|
|
|
|
- Rebuild for new kernel
|
|
|
|
|
|
|
|
|
|
* Tue Apr 28 2026 almalinux-bot-nvidia <almalinux-bot-nvidia@almalinux.org> - 595.71.05-1
|
|
|
|
|
- Update to 595.71.05
|
|
|
|
|
|
|
|
|
|
* Wed Mar 25 2026 almalinux-bot-nvidia <almalinux-bot-nvidia@almalinux.org> - 595.58.03-1
|
|
|
|
|
- Update to 595.58.03
|
|
|
|
|
|
|
|
|
|
* Fri Mar 06 2026 almalinux-bot-nvidia <almalinux-bot-nvidia@almalinux.org> - 595.45.04-1
|
|
|
|
|
- Update to 595.45.04
|
|
|
|
|
|
|
|
|
|
* Thu Feb 26 2026 Andrew Lukoshko <alukoshko@almalinux.org> - 590.48.01-2
|
|
|
|
|
- Rebuild for new kernel
|
|
|
|
|
|
|
|
|
|
* Thu Dec 18 2025 almalinux-bot-nvidia <almalinux-bot-nvidia@almalinux.org> - 590.48.01-1
|
|
|
|
|
- Update to 590.48.01
|
|
|
|
|
|
|
|
|
|
* Thu Dec 18 2025 Eduard Abdullin <eabdullin@almalinux.org> - 590.44.01-2
|
|
|
|
|
- Rebuild for new kernel
|
|
|
|
|
|
|
|
|
|
* Wed Dec 03 2025 almalinux-bot-nvidia <almalinux-bot-nvidia@almalinux.org> - 590.44.01-1
|
|
|
|
|
- Update to 590.44.01
|
|
|
|
|
|
|
|
|
|
* Fri Nov 14 2025 Eduard Abdullin <eabdullin@almalinux.org> - 580.105.08-3
|
|
|
|
|
- Mark modules executable
|
|
|
|
|
|
|
|
|
|
* Thu Nov 13 2025 Eduard Abdullin <eabdullin@almalinux.org> - 580.105.08-2
|
|
|
|
|
- Rebuild for the new kernel version
|
|
|
|
|
|
|
|
|
|
* Thu Nov 06 2025 almalinux-bot-nvidia <almalinux-bot-nvidia@almalinux.org> - 580.105.08-1
|
|
|
|
|
- Update to 580.105.08
|
|
|
|
|
|
|
|
|
|
* Thu Nov 06 2025 Eduard Abdullin <eabdullin@almalinux.org> - 580.95.05-3
|
|
|
|
|
- Rebuild for new kernel
|
|
|
|
|
|
|
|
|
|
* Thu Oct 22 2025 Eduard Abdullin <eabdullin@almalinux.org> - 580.95.05-2
|
|
|
|
|
- Rebuild for new kernel
|
|
|
|
|
|
|
|
|
|
* Thu Oct 02 2025 Eduard Abdullin <eabdullin@almalinux.org> - 580.95.05-1
|
|
|
|
|
- Update to 580.95.05
|
|
|
|
|
|
|
|
|
|
* Thu Oct 02 2025 Eduard Abdullin <eabdullin@almalinux.org> - 580.82.07-3
|
|
|
|
|
- Rebuild for new kernel
|
|
|
|
|
|
|
|
|
|
* Wed Sep 03 2025 Jonathan Wright <jonathan@almalinux.org> - 580.82.07-1
|
|
|
|
|
- Update to 580.82.07
|
|
|
|
|
|
|
|
|
|
* Sun Aug 24 2025 Andrew Lukoshko <alukoshko@almalinux.org> - 580.65.06-3
|
|
|
|
|
- Rebuild for new kernel
|
|
|
|
|
|
|
|
|
|
* Mon Aug 04 2025 Neal Gompa <ngompa@almalinux.org> - 580.65.06-2
|
|
|
|
|
- Drop metapackage and add more Provides for NVIDIA repository compatibility
|
|
|
|
|
|
|
|
|
|
* Mon Aug 04 2025 Neal Gompa <ngompa@almalinux.org> - 580.65.06-1
|
|
|
|
|
- Update to 580.65.06
|
|
|
|
|
- Add nvidia-open metapackage for driver+userspace installation
|
|
|
|
|
|
|
|
|
|
* Fri Jul 04 2025 Jonathan Wright <jonathan@almalinux.org> - 575.64.03-1
|
|
|
|
|
- Add conditional to help prevent shipping unsigned (secure boot) packages
|
|
|
|
|
- update to 575.64.03
|
|
|
|
|
|
|
|
|
|
* Thu Jul 03 2025 Jonathan Wright <jonathan@almalinux.org> - 575.64-2
|
|
|
|
|
- rebuild for packaging error
|
|
|
|
|
|
|
|
|
|
* Fri Jun 27 2025 Jonathan Wright <jonathan@almalinux.org> - 575.64-1
|
|
|
|
|
- update to 575.64
|
|
|
|
|
|
|
|
|
|
* Fri May 30 2025 Jonathan Wright <jonathan@almalinux.org> - 570.153.02-2
|
|
|
|
|
- Update BR envsubst for EL9 compatibility
|
|
|
|
|
- Replace "egrep" with "grep -E" in build macros
|
|
|
|
|
* Mon May 26 2025 Jonathan Wright <jonathan@almalinux.org> - 570.153.02-2
|
|
|
|
|
- Update BR for envsubst to filesystem path to work between major AlmaLinux versions
|
|
|
|
|
|
|
|
|
|
* Mon May 26 2025 Neal Gompa <ngompa@almalinux.org> - 570.153.02-1
|
|
|
|
|
- Initial package
|
|
|
|
|
|
|
|
|
|
|