linux-firmware: update to 20241210.

add build option for compression that will be made default at a later date.
This commit is contained in:
classabbyamp 2024-10-19 00:07:24 -04:00 committed by classabbyamp
parent 382103ce77
commit 3f9a08d3ac
1 changed files with 13 additions and 5 deletions

View File

@ -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 <void@placeviolette.net>"
@ -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