intel-microcode: Hardlink all files to save space

This will save about 3 MiB.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2024-07-10 17:02:24 +00:00
parent 708f26352a
commit e410a35a84

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