From: Michael Tremer Date: Tue, 29 Mar 2022 09:48:56 +0000 (+0000) Subject: linux-firmware: Hardlink any identical firmware files X-Git-Tag: v2.27-core167~6^2~75 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=beffabaca363582d5c310aecfd5bda099e85b0d2;p=ipfire-2.x.git linux-firmware: Hardlink any identical firmware files Some files are identical which is why we don't need to ship them mutiple times. This will save about 13 MiB of disk space and presumably the same on the compressed distro image. Signed-off-by: Michael Tremer --- diff --git a/lfs/linux-firmware b/lfs/linux-firmware index b6268a318b..244274126e 100644 --- a/lfs/linux-firmware +++ b/lfs/linux-firmware @@ -78,5 +78,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) mv "$${file}" "$${file// /_}" || exit 1; \ done < <(find /lib/firmware -name "* *") + # Hardlink any identical files + hardlink -c -vv /lib/firmware + @rm -rf $(DIR_APP) @$(POSTBUILD)