]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
intel-microcode: Hardlink all files to save space
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 10 Jul 2024 17:02:24 +0000 (17:02 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 10 Jul 2024 17:02:24 +0000 (17:02 +0000)
This will save about 3 MiB.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/intel-microcode

index 8cf0af29c8e24b3e3ad9a17f86f6cfe83ee91e0b..44e57a5df6501a3c57adca6206b51e7a5c26b3ab 100644 (file)
@@ -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)