[packages/linux-firmware] use make target for install instead of manual copy-firmware invocation

atler atler at pld-linux.org
Fri Oct 17 19:43:12 CEST 2025


commit a374c6421db07c143500c2d00568f686b028ff77
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri Oct 17 19:39:42 2025 +0200

    use make target for install instead of manual copy-firmware invocation
    
    ensures all steps are performed -- like deduplication which was
    separated in 20241017 -- and all features are used -- like parallel
    install

 linux-firmware.spec | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/linux-firmware.spec b/linux-firmware.spec
index af68b68..eabbc2c 100644
--- a/linux-firmware.spec
+++ b/linux-firmware.spec
@@ -21,6 +21,7 @@ Source0:	https://www.kernel.org/pub/linux/kernel/firmware/%{name}-%{version}.tar
 # Source0-md5:	4d383230776770d7f24299ce310f52f5
 Patch0:		check-files.patch
 URL:		https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/
+BuildRequires:	parallel
 BuildRequires:	rdfind
 BuildRequires:	tar >= 1:1.22
 BuildRequires:	xz
@@ -651,14 +652,15 @@ punktów sieci OLPC.
 # Remove source files we don't need to install
 %{__rm} */*.asm dsp56k/{Makefile,concat-bootstrap.pl} isci/{Makefile,README,*.[ch]}
 %{__rm} -r carl9170fw usbdux
-%{__rm} Makefile
 
 %{__mv} rtw88/README README.rtw88
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-./copy-firmware.sh $RPM_BUILD_ROOT/lib/firmware
+%{__make} install \
+	DESTDIR="$RPM_BUILD_ROOT" \
+	FIRMWAREDIR=/lib/firmware
 
 %clean
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/linux-firmware.git/commitdiff/a374c6421db07c143500c2d00568f686b028ff77



More information about the pld-cvs-commit mailing list