From 3f9a08d3acc095abf715ba76098c62edb9ef18eb Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Sat, 19 Oct 2024 00:07:24 -0400 Subject: [PATCH] linux-firmware: update to 20241210. add build option for compression that will be made default at a later date. --- srcpkgs/linux-firmware/template | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/srcpkgs/linux-firmware/template b/srcpkgs/linux-firmware/template index 4b6fe77d83c..8e9352a9214 100644 --- a/srcpkgs/linux-firmware/template +++ b/srcpkgs/linux-firmware/template @@ -1,8 +1,8 @@ # Template file for 'linux-firmware' pkgname=linux-firmware -version=20241110 +version=20241210 revision=1 -hostmakedepends="rdfind which" +hostmakedepends="rdfind which $(vopt_if compressed zstd)" depends="linux-firmware-amd>=${version}_${revision} linux-firmware-network>=${version}_${revision}" short_desc="Binary firmware blobs for the Linux kernel" maintainer="classabbyamp " @@ -10,12 +10,20 @@ license="custom:see /usr/share/licenses/linux-firmware" homepage="https://www.kernel.org/" changelog="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/log/" distfiles="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${version}.tar.gz" -checksum=c8a561dfdbd54157692fe166b84a173f9bc01f89c78f6196863beea2450e4938 +checksum=c7b83ae05d9943ab7f09e18e3c673ea8a55402f96e3b059a7d05b88c81670b78 python_version=3 nostrip=yes +build_options="compressed" +desc_option_compressed="compress firmware with zstd" + do_install() { - make install dedup FIRMWAREDIR=/usr/lib/firmware DESTDIR=$DESTDIR + if [ -n "$build_option_compressed" ]; then + env ZSTD_CLEVEL=9 ZSTD_NBTHREADS="$XBPS_MAKEJOBS" \ + make install-zst dedup FIRMWAREDIR=/usr/lib/firmware DESTDIR="$DESTDIR" + else + make install dedup FIRMWAREDIR=/usr/lib/firmware DESTDIR="$DESTDIR" + fi for _l in LICEN* WHENCE do @@ -109,7 +117,7 @@ linux-firmware-network_package() { # Cavium LiquidIO NIC liquidio # Mediatek WLAN/bluetooth - "mt7*.bin" + "mt7*.bin*" # Mellanox ethernet mellanox # Marvell WLAN/bluetooth