kernel-firmware/kernel-firmware.spec.in

178 lines
5.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package kernel-firmware
#
Accepting request 956099 from home:tiwai:branches:Kernel:HEAD - Update to version 20220218 (git commit c53073d4e148): * rtl_bt: Update RTL8852A BT USB firmware to 0xDFB7_6D7A * rtl_bt: Update RTL8822C BT USB firmware to 0x19B7_6D7D * rtl_bt: Update RTL8822C BT UART firmware to 0x15B7_6D7D * amdgpu: Update yellow carp firmware from 21.50 * amdgpu: Update vega20 firmware from 21.50 * amdgpu: Update vega12 firmware from 21.50 * amdgpu: Update vega10 firmware from 21.50 * amdgpu: Update vangogh firmware from 21.50 * amdgpu: Update renoir firmware from 21.50 * amdgpu: Update raven2 firmware from 21.50 * amdgpu: Update raven firmware from 21.50 * amdgpu: Update picasso firmware from 21.50 * amdgpu: Update beige goby firmware from 21.50 * amdgpu: Update dimgrey cavefish firmware from 21.50 * amdgpu: Update navy flounder firmware from 21.50 * amdgpu: Update sienna cichlid firmware from 21.50 * amdgpu: Update navi14 firmware from 21.50 * amdgpu: Update navi12 firmware from 21.50 * amdgpu: Update navi10 firmware from 21.50 * amdgpu: Update cyan skillfish2 firmware from 21.50 * amdgpu: Update green sardine firmware from 21.50 * amdgpu: Update arcturus firmware from 21.50 * amdgpu: Add aldebaran firmware from 21.50 * LICENSE.amdgpu: update copyright date * linux-firmware: Update AMD cpu microcode * linux-firmware: update firmware for MT7921 WiFi device * linux-firmware: Amphion: Add VPU firmwares for NXP i.MX8Q SoCs * i915: Add DMC firmware v2.16 for ADL-P * linux-firmware: mediatek: Update MT8173 VPU firmware to v1.1.7 OBS-URL: https://build.opensuse.org/request/show/956099 OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-firmware?expand=0&rev=368
2022-02-21 11:56:02 +01:00
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global flavor @BUILD_FLAVOR@%{nil}
%if 0%{?suse_version} < 1550
%define _firmwaredir /lib/firmware
%endif
%define __ksyms_path ^%{_firmwaredir}
%define version_unconverted @@VERSION@@
Name: kernel-firmware
Version: @@VERSION@@
Release: 0
Summary: Linux kernel firmware files
License: GPL-2.0-only AND SUSE-Firmware AND GPL-2.0-or-later AND MIT
Group: System/Kernel
URL: https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/
# Created with umask 022; cd /_tmp
# After git clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
# cd linux-firmware
# git archive --format=tar --prefix=kernel-firmware-$version/ -v master ./ | xz -9 -M 4G --check=crc32 -T 4 > /tmp/kernel-firmware-$version.tar.xz
#
Source0: kernel-firmware-%{version}.tar.xz
Source1: extrawhence
Source2: ast_dp501_fw.bin
Source8: ql2600_fw.bin
Source9: ql2700_fw.bin
Source10: ql8300_fw.bin
Source99: %{name}-rpmlintrc
Accepting request 993753 from home:tiwai:branches:Kernel:HEAD - Update to version 20220804 (git commit e6185d5197fd): * linux-firmware: Update firmware file for Intel Bluetooth 9462 * linux-firmware: Update firmware file for Intel Bluetooth 9462 * linux-firmware: Update firmware file for Intel Bluetooth 9560 * linux-firmware: Update firmware file for Intel Bluetooth 9560 * linux-firmware: Update firmware file for Intel Bluetooth AX201 * linux-firmware: Update firmware file for Intel Bluetooth AX201 * linux-firmware: Update firmware file for Intel Bluetooth AX211 * linux-firmware: Update firmware file for Intel Bluetooth AX211 * linux-firmware: Update firmware file for Intel Bluetooth AX210 * linux-firmware: Update firmware file for Intel Bluetooth AX200 * linux-firmware: Update firmware file for Intel Bluetooth AX201 * Mellanox: Add new mlxsw_spectrum firmware xx.2010.3020 * linux-firmware: Add firmware for Cirrus CS35L41 * i915: Add GuC v70.4.1 for DG2 * i915: Add DMC v2.07 for DG2 * amdgpu partially revert "amdgpu: update beige goby to release 22.20" * mediatek: Update mt8183/mt8192/mt8195 SCP firmware * amdgpu: update renoir to release 22.20 * amdgpu: update beige goby to release 22.20 * amdgpu: update yellow carp to release 22.20 * amdgpu: update dimgrey cavefish to release 22.20 * amdgpu: update vega20 to release 22.20 * amdgpu: update vega12 to release 22.20 * amdgpu: update raven to release 22.20 * amdgpu: update navy flounder to release 22.20 * amdgpu: update vega10 to release 22.20 * amdgpu: update sienna cichlid to release 22.20 * amdgpu: update navi14 to release 22.20 * amdgpu: update green sardine to release 22.20 OBS-URL: https://build.opensuse.org/request/show/993753 OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-firmware?expand=0&rev=384
2022-08-08 17:45:50 +02:00
# temporary revert (bsc#1202152): taken from upstream commit 06acb465d80b
Source100: rtw8822c_fw.bin
# install / build infrastructure
Source1001: install-split.sh
Source1002: list-license.sh
Source1003: get_supplements.sh
Source1004: topics.list
Source1005: licenses.list
Source1006: aliases.list
Source1007: topicdefs
Source1008: topicprovs
Source1009: kernel-firmware.spec.in
Source1010: makespec.sh
Source1011: fwtopics.py
Source1012: check-topic.py
Source1013: update-aliases.py
Source1014: README.build
# workarounds
Source1100: qcom-post
Source1101: uncompressed-post
BuildRequires: fdupes
BuildRequires: suse-module-tools
Requires(post): /usr/bin/mkdir /usr/bin/touch
Requires(postun):/usr/bin/mkdir /usr/bin/touch
BuildArch: noarch
@@ALLPROVS@@
Provides: compat-wireless-firmware = 4.4
Obsoletes: compat-wireless-firmware < 4.4
%if 0%{?suse_version} >= 1550
# make sure we have post-usrmerge filesystem package on TW
Conflicts: filesystem < 84
%endif
# Force bzip2 instead of lzma compression (bsc#1176981)
%define _binary_payload w9.bzdio
%description
This package contains the raw uncompressed firmware files for Linux kernel
drivers. This package is provided only for compatibility with older kernels
that do not support the compressed format.
%package -n ucode-amd
Summary: Microcode updates for AMD CPUs
Group: System/Kernel
Requires(post): /usr/bin/mkdir /usr/bin/touch
Requires(postun):/usr/bin/mkdir /usr/bin/touch
# new style (after 3.12 kernel somewhen)
Supplements: modalias(cpu:type%%3Ax86*ven0002*)
# old style (before 3.16 kernel)
Supplements: modalias(x86cpu:vendor%%3A0002%%3Afamily%%3A*%%3Amodel%%3A*%%3Afeature%%3A*)
%description -n ucode-amd
This package contains the microcode files used by AMD CPUs.
%package all
Summary: Compatibility metapackage for kernel firmware files
Group: System/Kernel
Requires(post): /usr/bin/mkdir /usr/bin/touch
Requires(postun):/usr/bin/mkdir /usr/bin/touch
Requires(post): dracut >= 049
Provides: kernel-firmware = %{version}
Obsoletes: kernel-firmware <= %{version}
Conflicts: kernel < 5.3
Provides: compat-wireless-firmware = 4.4
Obsoletes: compat-wireless-firmware < 4.4
%if 0%{?suse_version} >= 1550
# make sure we have post-usrmerge filesystem package on TW
Conflicts: filesystem < 84
%endif
@@SUBPKGLIST@@
%description all
This package is a catch-all compatibility metapackage for providing
all files that have been provided by kernel-firmware package.
@@SUBPACKAGES@@
%prep
%setup -q
# additional firmwares
cat %{SOURCE1} >> WHENCE
cp %{SOURCE2} %{SOURCE8} %{SOURCE9} %{SOURCE10} .
Accepting request 993753 from home:tiwai:branches:Kernel:HEAD - Update to version 20220804 (git commit e6185d5197fd): * linux-firmware: Update firmware file for Intel Bluetooth 9462 * linux-firmware: Update firmware file for Intel Bluetooth 9462 * linux-firmware: Update firmware file for Intel Bluetooth 9560 * linux-firmware: Update firmware file for Intel Bluetooth 9560 * linux-firmware: Update firmware file for Intel Bluetooth AX201 * linux-firmware: Update firmware file for Intel Bluetooth AX201 * linux-firmware: Update firmware file for Intel Bluetooth AX211 * linux-firmware: Update firmware file for Intel Bluetooth AX211 * linux-firmware: Update firmware file for Intel Bluetooth AX210 * linux-firmware: Update firmware file for Intel Bluetooth AX200 * linux-firmware: Update firmware file for Intel Bluetooth AX201 * Mellanox: Add new mlxsw_spectrum firmware xx.2010.3020 * linux-firmware: Add firmware for Cirrus CS35L41 * i915: Add GuC v70.4.1 for DG2 * i915: Add DMC v2.07 for DG2 * amdgpu partially revert "amdgpu: update beige goby to release 22.20" * mediatek: Update mt8183/mt8192/mt8195 SCP firmware * amdgpu: update renoir to release 22.20 * amdgpu: update beige goby to release 22.20 * amdgpu: update yellow carp to release 22.20 * amdgpu: update dimgrey cavefish to release 22.20 * amdgpu: update vega20 to release 22.20 * amdgpu: update vega12 to release 22.20 * amdgpu: update raven to release 22.20 * amdgpu: update navy flounder to release 22.20 * amdgpu: update vega10 to release 22.20 * amdgpu: update sienna cichlid to release 22.20 * amdgpu: update navi14 to release 22.20 * amdgpu: update green sardine to release 22.20 OBS-URL: https://build.opensuse.org/request/show/993753 OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-firmware?expand=0&rev=384
2022-08-08 17:45:50 +02:00
# temporary revert (bsc#1202152)
install -c -m 0644 %{SOURCE100} rtw88/rtw8822c_fw.bin
%build
# nothing to do
%install
mkdir -p %{buildroot}%{_firmwaredir}
%if "%flavor" != "compressed"
sh ./copy-firmware.sh %{buildroot}%{_firmwaredir}
%else
sh %{_sourcedir}/install-split.sh -v %{_sourcedir}/topics.list %{buildroot} %{_firmwaredir} < WHENCE
sh %{_sourcedir}/list-license.sh < %{_sourcedir}/licenses.list
%endif
%fdupes -s %{buildroot}
%if "%flavor" != "compressed"
@@POST@@
@@POST@@ -n ucode-amd
%else
@@POST@@ all
@@SUBPKGPOSTS@@
%endif
%if "%flavor" != "compressed"
%files
%doc WHENCE README
%license GPL-2 GPL-3 LICEN[CS]E.*
%{_firmwaredir}
%exclude %{_firmwaredir}/amd-ucode
%exclude %{_firmwaredir}/amd-ucode/*
%files -n ucode-amd
%doc amd-ucode/README
%license LICENSE.amd-ucode
%dir %{_firmwaredir}
%{_firmwaredir}/amd-ucode
%endif
%if "%flavor" == "compressed"
%files all
%doc WHENCE README
@@SUBPKGFILES@@
%endif
%changelog