From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 5/5] linux-firmware: Hardlink any identical firmware files Date: Tue, 29 Mar 2022 09:48:56 +0000 Message-ID: <20220329094856.482837-5-michael.tremer@ipfire.org> In-Reply-To: <20220329094856.482837-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0371061372646756892==" List-Id: --===============0371061372646756892== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 --- lfs/linux-firmware | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lfs/linux-firmware b/lfs/linux-firmware index b6268a318..244274126 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) -- 2.30.2 --===============0371061372646756892==--