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 <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2022-03-29 09:48:56 +00:00
parent f5ffdb75ce
commit beffabaca3

View File

@@ -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)