mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
linux-firmware: Compress firmware on disk
This patch enabled that we can compress any firmware files on disk. This will save some space since /lib/firmware is becoming larger with every release. From formerly 828MiB, this is now using ~349MiB which is a saving of about 480MiB on disk. This is helping us a lot fighting to contain the distribution to 2GB on /. Some other firmware that is installed in other packages is not compressed with this patch which is a bit sad, but potentially not worth the effort. In order to ship this change with a Core Update, it might be intuitive to remove /lib/firmware first and then extract the new update with all new files. However, I do not know if this all will compress as well as before since now the files are already individually compressed. It might be a challenge to ship this. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Peter Müller
parent
247e97800d
commit
77e3829dc1
@@ -70,8 +70,8 @@ $(subst %,%_MD5,$(objects)) :
|
||||
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
@$(PREBUILD)
|
||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
|
||||
mkdir -p /lib/firmware
|
||||
cd $(DIR_APP) && make install
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/0001-Add-support-for-compressing-firmware-in-copy-firmwar.patch
|
||||
cd $(DIR_APP) && make installcompress
|
||||
|
||||
# Remove any spaces in filenames
|
||||
while read -r file; do \
|
||||
|
||||
Reference in New Issue
Block a user