X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=lfs%2Flinux-firmware;h=f08dffb628529b3a1de0dbd17593b98b27f6f2c1;hp=c732ace9dacbea0f51011eb535270dc8374db6bc;hb=8a4780de645a5b3ab42054eaf022c57d6849ae9a;hpb=046ef135e667e8727d0826891004870d980a2feb diff --git a/lfs/linux-firmware b/lfs/linux-firmware index c732ace9da..f08dffb628 100644 --- a/lfs/linux-firmware +++ b/lfs/linux-firmware @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2017 IPFire Team # +# Copyright (C) 2007-2022 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -24,10 +24,10 @@ include Config -VER = 7b5835fd37630d18ac0c755329172f6a17c1af29 +VER = 20211216 THISAPP = linux-firmware-$(VER) -DL_FILE = $(THISAPP).tar.xz +DL_FILE = $(THISAPP).tar.gz DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) @@ -40,7 +40,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_MD5 = 09fc172e36a431c44ecb8171c4c07a3c +$(DL_FILE)_MD5 = eadc09197f2e22b527cbd0b5f4a59ebd install : $(TARGET) @@ -71,6 +71,15 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) mkdir -p /lib/firmware - cd $(DIR_APP) && cp -vr * /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)