# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/linux-firmware/used-only.diff # Copyright (C) 2023 - 2024 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License version 2 as used by the T2 SDE. # --- T2-COPYRIGHT-NOTE-END --- --- linux-firmware-20241017/copy-firmware.sh.vanilla 2024-11-12 20:21:06.500009971 +0100 +++ linux-firmware-20241017/copy-firmware.sh 2024-11-12 20:24:05.306679895 +0100 @@ -70,6 +70,7 @@ # shellcheck disable=SC2162 # file/folder name can include escaped symbols grep -E '^(RawFile|File):' WHENCE | sed -E -e 's/^(RawFile|File): */\1 /;s/"//g' | while read k f; do + grep -q "^$f$" INSTALLED || continue install -d "$destdir/$(dirname "$f")" $verbose "copying/compressing file $f$compext" if test "$compress" != "cat" && test "$k" = "RawFile"; then @@ -82,6 +83,7 @@ # shellcheck disable=SC2162 # file/folder name can include escaped symbols grep -E '^Link:' WHENCE | sed -e 's/^Link: *//g;s/-> //g' | while read l t; do + grep -q "^$f$" INSTALLED || continue directory="$destdir/$(dirname "$l")" install -d "$directory" target="$(cd "$directory" && realpath -m -s "$t")"