(cherry picked from commit 98cf873730e10d2a807045df51f516e1a804847c)
This commit is contained in:
Funda Wang 2024-10-18 18:28:52 +08:00 committed by openeuler-sync-bot
parent 9f3fb0cc0b
commit 4aa198b2be
5 changed files with 80 additions and 52 deletions

2
.gitattributes vendored
View File

@ -1 +1,3 @@
linux-firmware-20240811.tar.gz filter=lfs diff=lfs merge=lfs -text linux-firmware-20240811.tar.gz filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:639af65e08b45ef0adbee8a7b5a1b6afc030a05c019fd52f16d5673f5c0664bd
size 580546571

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a26c38ef5a83272f2b98ce8bf8ca1865a852a3deea49ce5a8dd804b914351273
size 397400292

View File

@ -1,18 +1,16 @@
%define _binaries_in_noarch_packages_terminate_build 0 %define _binaries_in_noarch_packages_terminate_build 0
%global release 2
%global _lib_path /usr/lib/firmware %global _lib_path /usr/lib/firmware
%global _license_path /usr/share/licenses
Name: linux-firmware Name: linux-firmware
Version: 20240811 Version: 20241017
Release: %{release} Release: 1
Summary: Firmware files used by the Linux kernel Summary: Firmware files used by the Linux kernel
License: GPL+ and GPLv2+ and MIT and Redistributable, no modification permitted License: GPL-1.0-or-later AND GPL-2.0-or-later AND MIT and Redistributable, no modification permitted
URL: http://www.kernel.org/ URL: https://www.kernel.org/
BuildArch: noarch BuildArch: noarch
Source0: https://mirrors.edge.kernel.org/pub/linux/kernel/firmware/%{name}-%{version}.tar.gz Source0: https://www.kernel.org/pub/linux/kernel/firmware/%{name}-%{version}.tar.xz
Provides: kernel-firmware = %{version} xorg-x11-drv-ati-firmware = 7.0 Provides: kernel-firmware = %{version} xorg-x11-drv-ati-firmware = 7.0
Obsoletes: kernel-firmware < %{version} xorg-x11-drv-ati-firmware < 6.13.0-0.22 Obsoletes: kernel-firmware < %{version} xorg-x11-drv-ati-firmware < 6.13.0-0.22
@ -27,6 +25,8 @@ Obsoletes: rt61pci-firmware < 1.2-11
Obsoletes: rt73usb-firmware < 1.8-11 Obsoletes: rt73usb-firmware < 1.8-11
Obsoletes: cx18-firmware < 20080628-10 Obsoletes: cx18-firmware < 20080628-10
Conflicts: microcode_ctl < 2.1-0 Conflicts: microcode_ctl < 2.1-0
BuildRequires: git
BuildRequires: python3
%description %description
This package contains firmware images required by some devices. This package contains firmware images required by some devices.
@ -34,6 +34,7 @@ This package contains firmware images required by some devices.
%package ath %package ath
Summary: Firmware files used by the ath Summary: Firmware files used by the ath
Conflicts: linux-firmware < 20240909
%description ath %description ath
This package contains firmware images required by some devices. This package contains firmware images required by some devices.
@ -45,9 +46,9 @@ Provides: libertas-usb8388-olpc-firmware = %{version}-%{release}
Provides: libertas-sd8686-firmware = %{version}-%{release} Provides: libertas-sd8686-firmware = %{version}-%{release}
Provides: libertas-sd8787-firmware = %{version}-%{release} Provides: libertas-sd8787-firmware = %{version}-%{release}
Obsoletes: libertas-usb8388-firmware Obsoletes: libertas-usb8388-firmware < 2:%{version}-%{release}
Obsoletes: libertas-sd8686-firmware Obsoletes: libertas-sd8686-firmware < %{version}-%{release}
Obsoletes: libertas-sd8787-firmware Obsoletes: libertas-sd8787-firmware < %{version}-%{release}
%description libertas %description libertas
This package contains firmware images required by some devices. This package contains firmware images required by some devices.
@ -85,51 +86,65 @@ This package contains firmware images required by some devices.
%package iwlwifi %package iwlwifi
Summary: Firmware files used by the iwlwifi Summary: Firmware files used by the iwlwifi
Provides: iwl100-firmware = 39.31.5.1-87 Provides: iwl100-firmware = %{version}-%{release}
Provides: iwl105-firmware = 18.168.6.1-87 Provides: iwl105-firmware = %{version}-%{release}
Provides: iwl135-firmware = 18.168.6.1-87 Provides: iwl135-firmware = %{version}-%{release}
Provides: iwl1000-firmware = 1:39.31.5.1-87 Provides: iwl1000-firmware = 1:%{version}-%{release}
Provides: iwl2000-firmware = 18.168.6.1-87 Provides: iwl2000-firmware = %{version}-%{release}
Provides: iwl2030-firmware = 18.168.6.1-87 Provides: iwl2030-firmware = %{version}-%{release}
Provides: iwl3160-firmware = 1:25.30.13.0-87 Provides: iwl3160-firmware = 1:%{version}-%{release}
Provides: iwl3945-firmware = 15.32.2.9-87 Provides: iwl3945-firmware = %{version}-%{release}
Provides: iwl4965-firmware = 228.61.2.24-87 Provides: iwl4965-firmware = %{version}-%{release}
Provides: iwl5000-firmware = 8.83.5.1_1-87 Provides: iwl5000-firmware = %{version}-%{release}
Provides: iwl5150-firmware = 8.24.2.2-87 Provides: iwl5150-firmware = %{version}-%{release}
Provides: iwl6000-firmware = 9.221.4.1-87 Provides: iwl6000-firmware = %{version}-%{release}
Provides: iwl6000g2a-firmware = 18.168.6.1-87 Provides: iwl6000g2a-firmware = %{version}-%{release}
Provides: iwl6000g2b-firmware = 18.168.6.1-87 Provides: iwl6000g2b-firmware = %{version}-%{release}
Provides: iwl6050-firmware = 41.28.5.1-87 Provides: iwl6050-firmware = %{version}-%{release}
Provides: iwl7260-firmware = 1:25.30.13.0-87 Provides: iwl7260-firmware = 1:%{version}-%{release}
Obsoletes: iwl100-firmware Obsoletes: iwl100-firmware < %{version}-%{release}
Obsoletes: iwl1000-firmware Obsoletes: iwl1000-firmware < 1:%{version}-%{release}
Obsoletes: iwl3160-firmware Obsoletes: iwl3160-firmware < 1:%{version}-%{release}
Obsoletes: iwl3945-firmware Obsoletes: iwl3945-firmware < %{version}-%{release}
Obsoletes: iwl4965-firmware Obsoletes: iwl4965-firmware < %{version}-%{release}
Obsoletes: iwl5000-firmware Obsoletes: iwl5000-firmware < %{version}-%{release}
Obsoletes: iwl5150-firmware Obsoletes: iwl5150-firmware < %{version}-%{release}
Obsoletes: iwl6000-firmware Obsoletes: iwl6000-firmware < %{version}-%{release}
Obsoletes: iwl6000g2a-firmware Obsoletes: iwl6000g2a-firmware < %{version}-%{release}
Obsoletes: iwl6000g2b-firmware Obsoletes: iwl6000g2b-firmware < %{version}-%{release}
Obsoletes: iwl6050-firmware Obsoletes: iwl6050-firmware < %{version}-%{release}
Obsoletes: iwl7260-firmware Obsoletes: iwl7260-firmware < 1:%{version}-%{release}
%description iwlwifi %description iwlwifi
This package contains firmware images required by some devices. This package contains firmware images required by some devices.
%prep %prep
%autosetup -p1 %autosetup -p1 -S git
# collect all the license, and delete those will be put into sub packages
mkdir -p LICENCES
cp LICENCE.* LICENSE.* LICENCES/
pushd LICENCES
rm -f LICENCE.atheros_firmware
rm -f LICENCE.iwlwifi_firmware
rm -f LICENCE.Marvell
rm -f LICENCE.OLPC
rm -f LICENCE.mediatek
rm -f LICENCE.ralink_a_mediatek_company_firmware
rm -f LICENCE.Marvell
rm -f LICENCE.Netronome
rm -f LICENCE.cypress
rm -f LICENCE.ti-connectivity
popd
%build %build
%install %install
mkdir -p %{buildroot}/%{_lib_path} mkdir -p %{buildroot}/%{_lib_path}/updates
mkdir -p %{buildroot}/%{_license_path}
cp -r * %{buildroot}/%{_lib_path} cp -r * %{buildroot}/%{_lib_path}
cp -r WHENCE LICENCE.* %{buildroot}/%{_license_path}
rm %{buildroot}/%{_lib_path}/{WHENCE,LICENCE.*,LICENSE.*} rm %{buildroot}/%{_lib_path}/{WHENCE,LICENCE.*,LICENSE.*}
make COPYOPTS="--ignore-duplicates" DESTDIR=%{buildroot} FIRMWAREDIR=%{_lib_path} install make COPYOPTS="-v --ignore-duplicates" DESTDIR=%{buildroot} FIRMWAREDIR=%{_lib_path} install
pushd %{buildroot}/%{_lib_path} pushd %{buildroot}/%{_lib_path}
rm -f usbdux/*dux */*.asm rm -f usbdux/*dux */*.asm
@ -141,10 +156,10 @@ popd
%files %files
%dir %{_lib_path} %dir %{_lib_path}
%dir %{_license_path} %license WHENCE
%license WHENCE LICENCE.* LICENSE.* %license LICENCES/*
%{_license_path}/*
%{_lib_path}/* %{_lib_path}/*
%exclude %{_lib_path}/ar3k
%exclude %{_lib_path}/ath* %exclude %{_lib_path}/ath*
%exclude %{_lib_path}/libertas %exclude %{_lib_path}/libertas
%exclude %{_lib_path}/mediatek %exclude %{_lib_path}/mediatek
@ -155,31 +170,42 @@ popd
%exclude %{_lib_path}/iwlwifi* %exclude %{_lib_path}/iwlwifi*
%files ath %files ath
%license LICENCE.atheros_firmware
%{_lib_path}/ar3k
%{_lib_path}/ath* %{_lib_path}/ath*
%files iwlwifi %files iwlwifi
%license LICENCE.iwlwifi_firmware
%{_lib_path}/iwlwifi* %{_lib_path}/iwlwifi*
%files libertas %files libertas
%license LICENCE.Marvell LICENCE.OLPC
%{_lib_path}/libertas %{_lib_path}/libertas
%files mediatek %files mediatek
%license LICENCE.mediatek LICENCE.ralink_a_mediatek_company_firmware
%{_lib_path}/mediatek %{_lib_path}/mediatek
%files mrvl %files mrvl
%license LICENCE.Marvell
%{_lib_path}/mrvl %{_lib_path}/mrvl
%files netronome %files netronome
%license LICENCE.Netronome
%{_lib_path}/netronome %{_lib_path}/netronome
%files cypress %files cypress
%license LICENCE.cypress
%{_lib_path}/cypress %{_lib_path}/cypress
%files ti-connectivity %files ti-connectivity
%license LICENCE.ti-connectivity
%{_lib_path}/ti-connectivity %{_lib_path}/ti-connectivity
%changelog %changelog
* Fri Oct 18 2024 Funda Wang <fundawang@yeah.net> - 20241017-1
- update to 20241017
* Thu Sep 19 2024 wangxiao <wangxiao184@h-partners.com> - 20240811-2 * Thu Sep 19 2024 wangxiao <wangxiao184@h-partners.com> - 20240811-2
- need use copy-firmware.sh, modify the process of build and install - need use copy-firmware.sh, modify the process of build and install

View File

@ -1,4 +1,4 @@
version_control: git version_control: git
src_repo: https://git.kernel.org/pub/scm/linux/kernel/git/afaerber/linux-firmware.git src_repo: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
tag_prefix: tag_prefix:
seperator: "-" separator: