From b431a0781ceb9f0eeb6c60ba4bee75e78d71d7d7 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 10 Jul 2024 17:02:24 +0000 Subject: [PATCH] intel-microcode: Hardlink all files to save space This will save about 3 MiB. Signed-off-by: Michael Tremer --- lfs/intel-microcode | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lfs/intel-microcode b/lfs/intel-microcode index 8cf0af29c..44e57a5df 100644 --- a/lfs/intel-microcode +++ b/lfs/intel-microcode @@ -74,7 +74,12 @@ $(subst %,%_BLAKE2,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && mkdir -p $(DIR_APP) && tar axf $(DIR_DL)/$(DL_FILE) + # Copy the firmware files into the right position cd $(DIR_APP) && cp -R intel-ucode /lib/firmware/ + + # Hardlink any identical files + hardlink -c -vv /lib/firmware/intel-ucode + @rm -rf $(DIR_APP) @$(POSTBUILD) -- 2.39.5