]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/linux-firmware
Revert "linux-firmware: Compress firmware on disk"
[ipfire-2.x.git] / lfs / linux-firmware
index b6268a318ba8988598ad6172de1ee8838d5004f1..f08dffb628529b3a1de0dbd17593b98b27f6f2c1 100644 (file)
@@ -70,13 +70,16 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
-       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/0001-Add-support-for-compressing-firmware-in-copy-firmwar.patch
-       cd $(DIR_APP) && make installcompress
+       mkdir -p /lib/firmware
+       cd $(DIR_APP) && make install
 
        # Remove any spaces in filenames
        while read -r file; do \
                mv "$${file}" "$${file// /_}" || exit 1; \
        done < <(find /lib/firmware -name "* *")
 
+       # Hardlink any identical files
+       hardlink -c -vv /lib/firmware
+
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)