From d3674cb75176597c4f866ca81c5ac835c7e458ae Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 14 Oct 2022 16:47:09 +0200 Subject: [PATCH] compress iwlwifi, ibt and netronome FW as compromise, as those are either not going into the initramfs or are not on the open market and provided a huge win (netronome is 100 MB of the ~400 MB total o.O) Signed-off-by: Thomas Lamprecht --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index bbbdec6..b39be67 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,10 @@ $(BUILDDIR): linux-firmware.git/WHENCE dvb-firmware.git/README fw.list cp linux-firmware.git/WHENCE $(BUILDDIR).tmp/usr/share/doc/pve-firmware/README install -d $(BUILDDIR).tmp/usr/share/doc/pve-firmware/licenses cp linux-firmware.git/LICEN[CS]E* $(BUILDDIR).tmp/usr/share/doc/pve-firmware/licenses + # we only compress big ones that almost definitively ain't required in the initrd + # or are so big and unbuyable (netronome...) + cd $(BUILDDIR).tmp/lib/firmware; find . -type f \( -name 'i[wb][lt]*' -o -path '*/netronome/*' \) -print0 | xargs -0 -n1 -P0 -- xz -C crc32 + cd $(BUILDDIR).tmp/lib/firmware; find . -xtype l -print0 | xargs -0 -n1 -P0 -- sh -c 'ln -sf "$$(readlink "$$0").xz" "$$0"; mv "$$0" "$$0.xz"' mv $(BUILDDIR).tmp $(BUILDDIR) # upgrade to current master -- 2.39.2