33 |
# |
# |
34 |
%define kernelversion 5 |
%define kernelversion 5 |
35 |
# WARNING: when patchlevel is bumped, please update drakx/kernel/list_modules.pm for new modules!!! |
# WARNING: when patchlevel is bumped, please update drakx/kernel/list_modules.pm for new modules!!! |
36 |
%define patchlevel 16 |
%define patchlevel 17 |
37 |
# sublevel is now used for -stable patches |
# sublevel is now used for -stable patches |
38 |
%define sublevel 18 |
%define sublevel 3 |
39 |
|
|
40 |
# Package release |
# Package release |
41 |
%define mgarel 1 |
%define mgarel 1 |
119 |
%define build_desktop586 1 |
%define build_desktop586 1 |
120 |
%endif |
%endif |
121 |
|
|
122 |
# Build desktop (i686 / 4GB) / x86_64 |
# Build desktop (i686 / 64GB) / x86_64 / arm / aarch64 |
123 |
%define build_desktop 1 |
%define build_desktop 1 |
124 |
|
|
125 |
# Build server (i686 / 64GB)/x86_64 / sparc64 sets |
# Build server (i686 / 64GB)/x86_64 / aarch64 |
126 |
|
%ifnarch %{arm} |
127 |
%define build_server 1 |
%define build_server 1 |
128 |
|
%else |
129 |
|
%define build_server 0 |
130 |
|
%endif |
131 |
|
|
132 |
# build perf and cpupower tools |
# build cpupower |
133 |
%define build_perf 1 |
%ifnarch %{arm} aarch64 |
134 |
%define build_cpupower 1 |
%define build_cpupower 1 |
135 |
|
%else |
136 |
|
%define build_cpupower 0 |
137 |
|
%endif |
138 |
|
|
139 |
|
# build perf |
140 |
|
%define build_perf 1 |
141 |
|
|
142 |
# bpf |
# bpf |
143 |
%define build_bpftool 1 |
%define build_bpftool 1 |
144 |
%define build_libbpf 1 |
%define build_libbpf 1 |
145 |
|
|
146 |
# compress modules with xz |
# compress modules with xz |
147 |
|
%ifnarch %{arm} |
148 |
%define build_modxz 1 |
%define build_modxz 1 |
149 |
|
%else |
|
# ARM builds |
|
|
%ifarch %{arm} |
|
|
%define build_server 0 |
|
|
# no cpupower tools on arm yet |
|
|
%define build_cpupower 0 |
|
|
# arm is currently not using xz |
|
150 |
%define build_modxz 0 |
%define build_modxz 0 |
151 |
%endif |
%endif |
|
# Arm64 builds |
|
|
%ifarch aarch64 |
|
|
%define build_cpupower 0 |
|
|
%endif |
|
152 |
# End of user definitions |
# End of user definitions |
153 |
|
|
154 |
# buildtime flags |
# buildtime override flags |
155 |
%{?_without_desktop586: %global build_desktop586 0} |
%{?_without_desktop586: %global build_desktop586 0} |
156 |
%{?_without_desktop: %global build_desktop 0} |
%{?_without_desktop: %global build_desktop 0} |
157 |
%{?_without_server: %global build_server 0} |
%{?_without_server: %global build_server 0} |
197 |
&& RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ |
&& RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ |
198 |
[ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-P $RPM_BUILD_NCPUS") |
[ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-P $RPM_BUILD_NCPUS") |
199 |
|
|
200 |
# Sparc arch wants sparc64 kernels |
# arm(64) arch matching |
201 |
%define target_arch %(echo %{_arch} | sed -e 's/arm.*/arm/' -e 's/aarch64/arm64/') |
%define target_arch %(echo %{_arch} | sed -e 's/arm.*/arm/' -e 's/aarch64/arm64/') |
202 |
|
|
203 |
|
|
279 |
### https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/tree/ |
### https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/tree/ |
280 |
### to SOURCES, generate patchlist with generate-patchlist.sh and paste it here |
### to SOURCES, generate patchlist with generate-patchlist.sh and paste it here |
281 |
### |
### |
282 |
|
Patch0100: drm-amd-display-add-pstate-verification-and-recovery-for-dcn31.patch |
283 |
|
Patch0101: drm-amd-display-fix-p-state-allow-debug-index-on-dcn31.patch |
284 |
|
Patch0102: cpuidle-psci-move-the-has_lpi-check-to-the-beginning-of-the-function.patch |
285 |
|
Patch0103: acpi-processor-idle-check-for-architectural-support-for-lpi.patch |
286 |
|
Patch0104: net-dsa-realtek-allow-subdrivers-to-externally-lock-regmap.patch |
287 |
|
Patch0105: net-dsa-realtek-rtl8365mb-serialize-indirect-phy-register-access.patch |
288 |
|
Patch0106: net-dsa-realtek-make-interface-drivers-depend-on-of.patch |
289 |
|
|
290 |
### |
### |
291 |
### Arch |
### Arch |
308 |
# slows down boot |
# slows down boot |
309 |
Patch1015: Revert-cpufreq-pcc-Enable-autoload-of-pcc-cpufreq-fo.patch |
Patch1015: Revert-cpufreq-pcc-Enable-autoload-of-pcc-cpufreq-fo.patch |
310 |
|
|
311 |
# fixes new hw not being properly detected |
# AMD Zen |
312 |
Patch1020: x86-pci-ignore-e820-reservations-for-bridge-windows-on-newer-systems.patch |
Patch1020: x86-Prefer-MWAIT-over-HALT-on-AMD-processors.patch |
|
|
|
|
# |
|
|
Patch1025: locking-lockdep-avoid-potential-access-of-invalid-memory-in-lock_class.patch |
|
|
|
|
|
# 5.16.15 regression |
|
|
Patch1030: Revert-swiotlb-rework-fix-info-leak-with-DMA_FROM_DE.patch |
|
313 |
|
|
314 |
### |
### |
315 |
### ACPI |
### ACPI |
321 |
# Clevo M720SR freezes with C3 |
# Clevo M720SR freezes with C3 |
322 |
Patch1105: acpi-processor-M720SR-limit-to-C2.patch |
Patch1105: acpi-processor-M720SR-limit-to-C2.patch |
323 |
|
|
324 |
# ACPI PM fixes (TTL: 5.16) |
# ACPI PM fixes (TTL: 5.18) |
325 |
Patch1130: x86-ACPI-State-Optimize-C3-entry-on-AMD-CPUs.patch |
Patch1130: x86-ACPI-State-Optimize-C3-entry-on-AMD-CPUs.patch |
326 |
|
|
327 |
### |
### |
337 |
# disable floppy autoloading (mga #4696) |
# disable floppy autoloading (mga #4696) |
338 |
Patch1220: block-floppy-disable-pnp-modalias.patch |
Patch1220: block-floppy-disable-pnp-modalias.patch |
339 |
|
|
|
# 5.16 regression |
|
|
Patch1225: block-check-morerequests-for-multiple_queues-in-blk_attempt_plug_merge.patch |
|
|
|
|
340 |
### |
### |
341 |
### Crypto |
### Crypto |
342 |
### |
### |
349 |
### File-system |
### File-system |
350 |
### |
### |
351 |
|
|
352 |
# aufs diffed from: https://github.com/sfjro/aufs5-linux/tree/aufs5.16 (mga#8314) |
# aufs diffed from: https://github.com/sfjro/aufs5-linux/tree/aufs5.17 (mga#8314) |
353 |
Patch1310: fs-aufs5.16.patch |
Patch1310: fs-aufs5.17.patch |
354 |
# symbol exports needed for modular aufs |
# symbol exports needed for modular aufs |
355 |
Patch1311: fs-aufs5.16-symbol-exports.patch |
Patch1311: fs-aufs5.17-symbol-exports.patch |
356 |
# set aufs tristate |
# set aufs tristate |
357 |
Patch1312: fs-aufs5.16-tristate.patch |
Patch1312: fs-aufs5.17-tristate.patch |
358 |
|
|
359 |
### |
### |
360 |
### FireWire |
### FireWire |
371 |
### GPU/DRM |
### GPU/DRM |
372 |
### |
### |
373 |
|
|
374 |
|
# mga compat option |
375 |
|
Patch1500: drm-gpu-drm-treat-nokmsboot-as-nomodeset.patch |
376 |
|
|
377 |
# amdgpu |
# amdgpu |
378 |
# switch SI and CIK from radeon to amdgpu |
# switch SI and CIK from radeon to amdgpu |
379 |
Patch1520: drm-amdgpu-SI-and-CIK-enabled-by-default.patch |
Patch1520: drm-amdgpu-SI-and-CIK-enabled-by-default.patch |
382 |
Patch1530: char-agp-intel-new-Q57-id.patch |
Patch1530: char-agp-intel-new-Q57-id.patch |
383 |
|
|
384 |
# i915 |
# i915 |
|
# Raptor Lake S |
|
|
Patch1542: drm-i915-rpl-s-Add-PCI-IDS-for-Raptor-Lake-S.patch |
|
|
Patch1543: drm-i915-rpl-s-Add-PCH-Support-for-Raptor-Lake-S.patch |
|
|
Patch1544: drm-i915-rpl-s-Enable-guc-submission-by-default.patch |
|
385 |
# Alder Lake N |
# Alder Lake N |
386 |
Patch1545: drm-i915-adl-n-Enable-ADL-N-platform.patch |
Patch1545: drm-i915-adl-n-Enable-ADL-N-platform.patch |
387 |
# TGL |
# TGL |
397 |
### hwmon |
### hwmon |
398 |
### |
### |
399 |
|
|
|
# k10temp |
|
|
Patch1600: x86-amd_nb-Add-AMD-Family-19h-Models-10h-1Fh-and-A0h-AFh-PCI-IDs.patch |
|
|
Patch1601: hwmon-k10temp-Remove-unused-definitions.patch |
|
|
Patch1602: hwmon-k10temp-Add-support-for-AMD-Family-19h-Models-10h-1Fh-and-A0h-AFh.patch |
|
|
Patch1603: hwmon-k10temp-Support-up-to-12-CCDs-on-AMD-Family-of-processors.patch |
|
|
|
|
|
# asus |
|
|
Patch1616: hwmon-asus_wmi_ec_sensors-Support-B550-Asus-WMI.patch |
|
|
Patch1617: hwmon-asus_wmi_sensors-Support-X370-Asus-WMI.patch |
|
|
|
|
400 |
### |
### |
401 |
### i2c |
### i2c |
402 |
### |
### |
411 |
### HID |
### HID |
412 |
### |
### |
413 |
|
|
|
Patch1750: hid-intel-ish-hid-ipc-Specify-no-cache-snooping-on-TGL-and-ADL.patch |
|
|
|
|
414 |
### |
### |
415 |
### kernel |
### kernel |
416 |
### |
### |
418 |
# CVE-2021-4204 |
# CVE-2021-4204 |
419 |
Patch1800: bpf-prevent-helper-argument-PTR_TO_ALLOC_MEM-to-have-offset-other-than-0.patch |
Patch1800: bpf-prevent-helper-argument-PTR_TO_ALLOC_MEM-to-have-offset-other-than-0.patch |
420 |
|
|
421 |
|
# |
422 |
|
Patch1805: tick-nohz-Use-WARN_ON_ONCE-to-prevent-console-saturation.patch |
423 |
|
|
424 |
### |
### |
425 |
### MFD |
### MFD |
426 |
### |
### |
429 |
### MM |
### MM |
430 |
### |
### |
431 |
|
|
|
Patch1850: mm-kfence-fix-missing-objcg-housekeeping-for-SLAB.patch |
|
|
|
|
432 |
### |
### |
433 |
### Network |
### Network |
434 |
### |
### |
458 |
Patch1930: net-wireless-rtw88-add-r8822be-alias.patch |
Patch1930: net-wireless-rtw88-add-r8822be-alias.patch |
459 |
# add alias for the replaced 8723de 3rdparty driver |
# add alias for the replaced 8723de 3rdparty driver |
460 |
Patch1931: net-wireless-rtw88-add-8723de-alias.patch |
Patch1931: net-wireless-rtw88-add-8723de-alias.patch |
|
# TTL: 5.17 |
|
|
Patch1936: net-wireless-rtw88-dont-check-CRC-of-VHT-SIG-B-in-802.11ac-signal.patch |
|
461 |
# TTL: 5.18 |
# TTL: 5.18 |
462 |
Patch1937: net-wireless-rtlwifi-rtw88-add-support-for-realtek-8821ce-rfe-type-6.patch |
Patch1937: net-wireless-rtlwifi-rtw88-add-support-for-realtek-8821ce-rfe-type-6.patch |
463 |
|
|
|
# amd-xgbe |
|
|
Patch1945: net-amd-xgbe-Add-Support-for-Yellow-Carp-Ethernet-device.patch |
|
|
|
|
|
# mptcp |
|
|
Patch1950: net-mptcp-fix-crash-due-to-tcp_tsorted_anchor-was-initialized-before-release-skb.patch |
|
|
|
|
|
# rtw89 |
|
|
Patch1970: net-wireless-rtw89-8852a-correct-bit-definition-of-dfs_en.patch |
|
|
|
|
464 |
# iwlfiwi |
# iwlfiwi |
465 |
Patch1980: net-wireless-iwlwifi-add-new-pci-id-for-6235.patch |
Patch1980: net-wireless-iwlwifi-add-new-pci-id-for-6235.patch |
|
Patch1985: net-wireless-iwlwifi-add-missing-entries-for-Gf4-with-So-and-SoF.patch |
|
|
Patch1986: net-wireless-iwlwifi-swap-1650i-and-1650s-killer-struct-names.patch |
|
|
Patch1987: net-wireless-iwlwifi-add-new-Qu-Hr-device.patch |
|
|
Patch1988: net-wireless-iwlwifi-add-new-ax1650-killer-device.patch |
|
466 |
Patch1990: net-wireless-iwlwifi-mvm-check-if-SAR-GEO-is-supported-before-sending-command.patch |
Patch1990: net-wireless-iwlwifi-mvm-check-if-SAR-GEO-is-supported-before-sending-command.patch |
467 |
|
|
468 |
### |
### |
485 |
Patch2053: platform-x86-shuttle-wmi-4.13-buildfix.patch |
Patch2053: platform-x86-shuttle-wmi-4.13-buildfix.patch |
486 |
Patch2054: platform-x86-shuttle-wmi-kernel-5.5.patch |
Patch2054: platform-x86-shuttle-wmi-kernel-5.5.patch |
487 |
|
|
|
# Steam deck |
|
|
Patch2060: platform-x86-add-steam-deck-driver.patch |
|
|
|
|
488 |
# hp-wmi |
# hp-wmi |
489 |
Patch2065: platform-x86-hp-wmi-support-omen-thermal-profile-policy-v1.patch |
Patch2065: platform-x86-hp-wmi-support-omen-thermal-profile-policy-v1.patch |
490 |
|
|
496 |
### Sound |
### Sound |
497 |
### |
### |
498 |
|
|
|
# adl |
|
|
Patch2160: ALSA-hda-Add-AlderLake-N-PCI-ID.patch |
|
|
Patch2161: ALSA-hda-Add-new-AlderLake-P-variant-PCI-ID.patch |
|
|
|
|
499 |
### |
### |
500 |
### SPI |
### SPI |
501 |
### |
### |
534 |
|
|
535 |
# Mageia framebuffer boot logo |
# Mageia framebuffer boot logo |
536 |
Patch2500: video-mageia-logo.patch |
Patch2500: video-mageia-logo.patch |
|
|
|
|
# mga compat option |
|
|
Patch2501: video-console-vgacon-treat-nokmsboot-as-nomodeset.patch |
|
|
|
|
537 |
### |
### |
538 |
### Virt |
### Virt |
539 |
### |
### |
568 |
Patch3100: 3rd-ndiswrapper-1.63.patch |
Patch3100: 3rd-ndiswrapper-1.63.patch |
569 |
Patch3101: 3rd-ndiswrapper-Kconfig.patch |
Patch3101: 3rd-ndiswrapper-Kconfig.patch |
570 |
Patch3102: 3rd-ndiswrapper-Makefile-build-fix.patch |
Patch3102: 3rd-ndiswrapper-Makefile-build-fix.patch |
571 |
Patch3103: 3rd-niswrapper-Kconfig-Makefile.patch |
Patch3103: 3rd-ndiswrapper-Kconfig-Makefile.patch |
572 |
|
Patch3104: 3rd-ndiswrapper-kernel-5.17.patch |
573 |
|
|
574 |
# add rtl8812 support (mga#21043) |
# add rtl8812 support (mga#21043) |
575 |
# from https://github.com/aircrack-ng/rtl8812au.git |
# from https://github.com/aircrack-ng/rtl8812au.git |
576 |
Patch3200: 3rd-rtl8812au.patch |
Patch3200: 3rd-rtl8812au.patch |
577 |
Patch3201: 3rd-rtl8812au-Kconfig-Makefile.patch |
Patch3201: 3rd-rtl8812au-Kconfig-Makefile.patch |
578 |
Patch3202: 3rd-rtl8812au-rename.patch |
Patch3202: 3rd-rtl8812au-rename.patch |
579 |
|
Patch3203: 3rd-rtl8812au-kernel-5.17.patch |
580 |
|
|
581 |
# add rtl8723de support (mga#22559) |
# add rtl8723de support (mga#22559) |
582 |
Patch3300: 3rd-rtl8723de.patch |
Patch3300: 3rd-rtl8723de.patch |
601 |
Patch3503: 3rd-rtl8821ce-kernel-5.10.patch |
Patch3503: 3rd-rtl8821ce-kernel-5.10.patch |
602 |
Patch3504: 3rd-rtl8821ce-kernel-5.12.patch |
Patch3504: 3rd-rtl8821ce-kernel-5.12.patch |
603 |
Patch3505: 3rd-rtl8821ce-kernel-5.15.patch |
Patch3505: 3rd-rtl8821ce-kernel-5.15.patch |
604 |
|
Patch3506: 3rd-rtl8821ce-kernel-5.17.patch |
605 |
|
|
606 |
# fix Kconfig files for 3rdparty: |
# fix Kconfig files for 3rdparty: |
607 |
Patch3900: 3rd-fix-kconfig.patch |
Patch3900: 3rd-fix-kconfig.patch |
609 |
### |
### |
610 |
### Python fixes |
### Python fixes |
611 |
### |
### |
612 |
Patch4000: linux-5.16-python3.patch |
Patch4000: linux-5.17-python3.patch |
613 |
|
|
614 |
### |
### |
615 |
### TTY |
### TTY |
629 |
### Cosmetic fixes (e.g. typos, spelling, etc.) |
### Cosmetic fixes (e.g. typos, spelling, etc.) |
630 |
### |
### |
631 |
|
|
632 |
|
# broken rtla cleaner |
633 |
|
Patch6000: hack-broken-rtla-cleaner.patch |
634 |
|
|
635 |
|
|
636 |
### Fixes from FC kernel |
### Fixes from FC kernel |
637 |
# Inspur Advantech PCI ids |
# Inspur Advantech PCI ids |
638 |
Patch7000: 0001-scsi-smartpqi-add-inspur-advantech-ids.patch |
Patch7000: 0001-scsi-smartpqi-add-inspur-advantech-ids.patch |
903 |
%endif |
%endif |
904 |
|
|
905 |
# |
# |
906 |
# kernel-desktop: i686, smp-alternatives, 4 GB / x86_64 |
# kernel-desktop: i686, smp-alternatives, 64 GB / x86_64 / arm / aarch64 |
907 |
# |
# |
908 |
%if %build_desktop |
%if %build_desktop |
909 |
%ifarch %{ix86} |
%ifarch %{ix86} |
910 |
%define summary_desktop Linux Kernel for desktop use with i686 and less than 4GB RAM |
%define summary_desktop Linux Kernel for desktop use with i686 and up to 64GB RAM |
911 |
%define info_desktop This kernel is compiled for desktop use, single or \ |
%define info_desktop This kernel is compiled for desktop use, single or \ |
912 |
multiple i686 processor(s)/core(s) and less than 4GB RAM (usually 3-3.5GB \ |
multiple i686 processor(s)/core(s) and up to 64GB RAM, using HZ_1000, \ |
913 |
detected, if you need/want to use all 4GB or more, install kernel-server), \ |
voluntary preempt, CFS cpu scheduler and cfq i/o scheduler. |
|
using HZ_1000, voluntary preempt, CFS cpu scheduler and cfq i/o scheduler. |
|
914 |
%else |
%else |
915 |
%define summary_desktop Linux Kernel for desktop use with %{_arch} |
%define summary_desktop Linux Kernel for desktop use with %{_arch} |
916 |
%define info_desktop This kernel is compiled for desktop use, single or \ |
%define info_desktop This kernel is compiled for desktop use, single or \ |
921 |
%endif |
%endif |
922 |
|
|
923 |
# |
# |
924 |
# kernel-server: i686, smp-alternatives, 64 GB / x86_64 |
# kernel-server: i686, smp-alternatives, 64 GB / x86_64 / aarch64 |
925 |
# |
# |
926 |
%if %build_server |
%if %build_server |
927 |
%ifarch %{ix86} |
%ifarch %{ix86} |
1903 |
%if %{build_libbpf} |
%if %{build_libbpf} |
1904 |
%files -n %{_lib}bpf0 |
%files -n %{_lib}bpf0 |
1905 |
%{_libdir}/libbpf.so.0 |
%{_libdir}/libbpf.so.0 |
1906 |
%{_libdir}/libbpf.so.0.6.0 |
%{_libdir}/libbpf.so.0.7.0 |
1907 |
|
|
1908 |
%files -n %{_lib}bpf-devel |
%files -n %{_lib}bpf-devel |
1909 |
%{_libdir}/libbpf.a |
%{_libdir}/libbpf.a |