From: Michael Tremer Date: Wed, 10 Jul 2024 17:02:24 +0000 (+0000) Subject: intel-microcode: Hardlink all files to save space X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b431a0781ceb9f0eeb6c60ba4bee75e78d71d7d7;p=people%2Fms%2Fipfire-2.x.git intel-microcode: Hardlink all files to save space This will save about 3 MiB. Signed-off-by: Michael Tremer --- 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)