6.6.9-xanmod1

This commit is contained in:
kelpee (Sergey) 2024-01-02 08:26:00 +02:00
parent b5e0928cae
commit ac790f8e00

View file

@ -37,7 +37,7 @@
%define patch_rel 1
# Release number. Increase this before a rebuild.
%define rpmrel 1.k
%define rpmrel 2.k
%define fullrpmrel %{rpmrel}
@ -82,7 +82,7 @@
%if %{mdvver} >= 201905
# Build binary out-of-tree kernel modules (experimental)
%bcond_without binary_extra_modules
%bcond_with nvidia_module
%bcond_without nvidia_module
# Sign kernel modules with GOST key (experimental)
%bcond_without gost_sign
%else
@ -147,8 +147,8 @@ cat %{_builddir}/debugfiles.list >> %{debuginfo_files}
%if %{with binary_extra_modules}
%if %{with nvidia_module}
# global instead of define to speed up things
%global nvidia_535_j %{kroko_j -p kernel-source-nvidia535 -r 535}
%global nvidia_535_n %{kroko_n -p kernel-source-nvidia535 -r 535}
%global nvidia_545_j %{kroko_j -p kernel-source-nvidia545 -r 545}
%global nvidia_545_n %{kroko_n -p kernel-source-nvidia545 -r 545}
%endif
# For SRPM stage when auto-krokodil-rpm-macros is not installed
@ -358,7 +358,7 @@ BuildRequires: findutils util-linux
BuildRequires: auto-krokodil-rpm-macros
%ifarch %{x86_64}
%if %{with nvidia_module}
BuildRequires: kernel-source-nvidia535
BuildRequires: kernel-source-nvidia545
%endif
%endif
BuildRequires: kernel-source-tripso
@ -415,7 +415,7 @@ Recommends: kernel-headers = %{EVRD}
%if %{with binary_extra_modules}
%ifarch %{x86_64}
%if %{with nvidia_module}
%kroko_req_modules_in_kernel -j %{nvidia_535_j} -n %{nvidia_535_n} -p %{kver_full}
%kroko_req_modules_in_kernel -j %{nvidia_545_j} -n %{nvidia_545_n} -p %{kver_full}
%endif
%endif
%endif
@ -801,7 +801,7 @@ User Mode Linux (UML) kernel modules
%ifarch %{x86_64}
%if %{with nvidia_module}
%kroko_kmod_pkg -r %{kroko_release} -j %{nvidia_535_j} -n %{nvidia_535_n} -f %{flavour} -k %{kernelversion}.%{patchlevel} -m %{sublevel} -p %{kver_full} -s %{NAME} -c %{kmod_suffix}
%kroko_kmod_pkg -r %{kroko_release} -j %{nvidia_545_j} -n %{nvidia_545_n} -f %{flavour} -k %{kernelversion}.%{patchlevel} -m %{sublevel} -p %{kver_full} -s %{NAME} -c %{kmod_suffix}
%endif
%endif
@ -1026,9 +1026,8 @@ _build_nvidia(){
touch %{temp_root}/var/spool/initramfs-regen/nvidia${1}.%{kroko_release}
}
%ifarch %{x86_64}
_build_nvidia 535
_build_nvidia 545
%endif
%endif