mirror of
https://abf.rosa.ru/djam/kernel-5.15.git
synced 2025-02-23 10:32:54 +00:00
add nvidia340
This commit is contained in:
parent
040694020e
commit
97b0d6cdfc
1 changed files with 7 additions and 2 deletions
|
@ -166,7 +166,8 @@ cat %{_builddir}/debugfiles.list >> %{debuginfo_files}
|
|||
|
||||
%if %{with binary_extra_modules}
|
||||
# global instead of define to speed up things
|
||||
# TODO: add nvidia340
|
||||
%global nvidia_340_j %{kroko_j -p kernel-source-nvidia340 -r 340}
|
||||
%global nvidia_340_n %{kroko_n -p kernel-source-nvidia340 -r 340}
|
||||
%global nvidia_390_j %{kroko_j -p kernel-source-nvidia390 -r 390}
|
||||
%global nvidia_390_n %{kroko_n -p kernel-source-nvidia390 -r 390}
|
||||
%global nvidia_470_j %{kroko_j -p kernel-source-nvidia470 -r 470}
|
||||
|
@ -531,9 +532,10 @@ BuildRequires: kernel-source-rtl8812au
|
|||
BuildRequires: kernel-source-rtl8821au
|
||||
BuildRequires: kernel-source-rtl8814au
|
||||
BuildRequires: kernel-source-rtk_btusb
|
||||
# Broadcom-wl and nvidia390 contain a proprietary blob which is only for x86
|
||||
# Broadcom-wl and nvidia contain a proprietary blob which is only for x86
|
||||
%ifarch %{ix86} %{x86_64}
|
||||
BuildRequires: kernel-source-broadcom-wl
|
||||
BuildRequires: kernel-source-nvidia340
|
||||
BuildRequires: kernel-source-nvidia390
|
||||
%endif
|
||||
# Nvidia470+ are x86_64 only (maybe aarch64 will be also packaged later)
|
||||
|
@ -597,6 +599,7 @@ Recommends: kernel-headers = %{EVRD}
|
|||
|
||||
%if %{with binary_extra_modules}
|
||||
%ifarch %{ix86} %{x86_64}
|
||||
%kroko_req_modules_in_kernel -j %{nvidia_340_j} -n %{nvidia_340_n} -p %{kver_full}
|
||||
%kroko_req_modules_in_kernel -j %{nvidia_390_j} -n %{nvidia_390_n} -p %{kver_full}
|
||||
%endif
|
||||
%ifarch %{x86_64}
|
||||
|
@ -1012,6 +1015,7 @@ User Mode Linux (UML) kernel modules:
|
|||
%ksob_mk_module_pkg -n rtk_btusb -s drivers/bluetooth -r rtk_btusb-firmware
|
||||
%ifarch %{ix86} %{x86_64}
|
||||
%ksob_mk_module_pkg -n wl -s net/wireless -r broadcom-wl-aliases
|
||||
%kroko_kmod_pkg -r %{kroko_release} -j %{nvidia_340_j} -n %{nvidia_340_n} -f %{flavour} -k %{kernelversion}.%{patchlevel} -m %{sublevel} -p %{kver_full} -s %{NAME} -c %{kmod_suffix}
|
||||
%kroko_kmod_pkg -r %{kroko_release} -j %{nvidia_390_j} -n %{nvidia_390_n} -f %{flavour} -k %{kernelversion}.%{patchlevel} -m %{sublevel} -p %{kver_full} -s %{NAME} -c %{kmod_suffix}
|
||||
%endif
|
||||
%ifarch %{x86_64}
|
||||
|
@ -1532,6 +1536,7 @@ cp wl.ko %{temp_modules}/%{kver_full}/kernel/net/wireless/wl.ko
|
|||
popd
|
||||
rm -fr kernel-source-broadcom-wl
|
||||
|
||||
_build_nvidia 340
|
||||
_build_nvidia 390
|
||||
%endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue