kernel-firmware/copy-firmware-fix-symlink-without-compress.patch
Takashi Iwai 8109b6df4b - Update to version 20241220 (git commit 9cf329b39cf1):
* cnm: update chips&media wave521c firmware.
  * WHENCE: Add "Info:" tag to text that's clearly not part of the license
  * rtl_nic: add firmware rtl8125bp-2
  * qcom: venus-5.4: update firmware binary for sc7180 and qcs615
  * cirrus: cs35l56: Correct filenames of SSID 17aa3832
  * cirrus: cs35l56: Add and update firmware for various Cirrus CS35L54 and CS35L56 laptops
  * cirrus: cs35l56: Correct SSID order for 103c8d01 103c8d08 10431f43

OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-firmware?expand=0&rev=519
2025-01-01 11:42:39 +00:00

22 lines
832 B
Diff

diff --git a/copy-firmware.sh b/copy-firmware.sh
index 6757c6ce03a3..fc096dd6daf0 100755
--- a/copy-firmware.sh
+++ b/copy-firmware.sh
@@ -136,9 +136,15 @@ grep -E '^Link:' WHENCE | sed -e 's/^Link: *//g;s/-> //g' | while read f d; do
if test -d "$target"; then
$verbose "creating link $f -> $d"
ln -s "$d" "$destdir/$f"
- else
+ elif test -f "$target$compext"; then
$verbose "creating link $f$compext -> $d$compext"
ln -s "$d$compext" "$destdir/$f$compext"
+ elif test -f "$target"; then
+ $verbose "creating link $f -> $d"
+ ln -s "$d" "$destdir/$f"
+ else
+ $verbose "creating link (not yet existing) $f$compext -> $d$compext"
+ ln -s "$d$compext" "$destdir/$f$compext"
fi
fi
done