From b787ff5139ffd4061543a1d55d242e56e196350d Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Tue, 18 Mar 2025 13:14:50 +0800 Subject: [PATCH] 20250311 --- .lfsconfig | 2 + ...7.tar.xz => linux-firmware-20250311.tar.xz | 4 +- linux-firmware.spec | 38 +++++++++++++------ 3 files changed, 31 insertions(+), 13 deletions(-) create mode 100644 .lfsconfig rename linux-firmware-20241017.tar.xz => linux-firmware-20250311.tar.xz (32%) diff --git a/.lfsconfig b/.lfsconfig new file mode 100644 index 0000000..90e84f5 --- /dev/null +++ b/.lfsconfig @@ -0,0 +1,2 @@ +[lfs] + url = https://artlfs.openeuler.openatom.cn/src-openEuler/linux-firmware diff --git a/linux-firmware-20241017.tar.xz b/linux-firmware-20250311.tar.xz similarity index 32% rename from linux-firmware-20241017.tar.xz rename to linux-firmware-20250311.tar.xz index 553b8e3..9ea32f8 100644 --- a/linux-firmware-20241017.tar.xz +++ b/linux-firmware-20250311.tar.xz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a26c38ef5a83272f2b98ce8bf8ca1865a852a3deea49ce5a8dd804b914351273 -size 397400292 +oid sha256:b1083a36f19aea46f661dcfd4cd462d13933dcb4e7f0dc809525552dd5c3541d +size 434375512 diff --git a/linux-firmware.spec b/linux-firmware.spec index 118654f..5f79d36 100644 --- a/linux-firmware.spec +++ b/linux-firmware.spec @@ -5,7 +5,7 @@ %global _license_path /usr/share/licenses Name: linux-firmware -Version: 20241017 +Version: 20250311 Release: %{release} Summary: Firmware files used by the Linux kernel License: GPL+ and GPLv2+ and MIT and Redistributable, no modification permitted @@ -74,29 +74,45 @@ This package contains firmware images required by some devices. %prep %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 %install -mkdir -p %{buildroot}/%{_lib_path} -mkdir -p %{buildroot}/%{_license_path} -cp -r * %{buildroot}/%{_lib_path} -cp -r WHENCE LICENCE.* %{buildroot}/%{_license_path} -rm %{buildroot}/%{_lib_path}/{WHENCE,LICENCE.*,LICENSE.*} -make COPYOPTS="--ignore-duplicates" DESTDIR=%{buildroot} FIRMWAREDIR=%{_lib_path} install +mkdir -p %{buildroot}/%{_lib_path}/updates +make DESTDIR=%{buildroot} FIRMWAREDIR=%{_lib_path} install-zst pushd %{buildroot}/%{_lib_path} rm -f usbdux/*dux */*.asm rm -rf carl9170fw +rm -f Makefile README configure +rm -rf check_whence.py copy-firmware.sh +rm -rf build_packages.py contrib popd %files -%dir %{_lib_path} -%dir %{_license_path} -%license WHENCE LICENCE.* LICENSE.* -%{_license_path}/* +%license WHENCE +%license LICENCES/* %{_lib_path}/* %changelog +* Tue Mar 18 2025 Funda Wang - 20250311-1 +- update to 20250311 + * Fri Oct 18 2024 Funda Wang - 20241017-1 - update to 20241017 -- Gitee