kernel-firmware/copy-firmware-fix-symlink-without-compress.patch
Takashi Iwai 8a572afe4d - Update to version 20250120 (git commit a6cc74725558):
* amdgpu: update psp 13.0.10 firmware
  * amdgpu: update gc 11.0.3 firmware
  * amdgpu: update psp 13.0.8 firmware
  * amdgpu: update psp 13.0.5 firmware
  * amdgpu: update vcn 4.0.0 firmware
  * amdgpu: update psp 13.0.0 firmware
  * amdgpu: update gc 11.0.0 firmware
  * amdgpu: update beige goby firmware
  * amdgpu: update dimgrey cavefish firmware
  * amdgpu: update navy flounder firmware
  * amdgpu: update sienna cichlid firmware
  * amdgpu: update navi14 firmware
  * amdgpu: update smu 14.0.3 firmware
  * amdgpu: update psp 14.0.3 firmware
  * amdgpu: update gc 12.0.1 firmware
  * amdgpu: update navi12 firmware
  * amdgpu: update smu 14.0.2 firmware
  * amdgpu: update psp 14.0.2 firmware
  * amdgpu: update gc 12.0.0 firmware
  * amdgpu: update gc 9.4.3 firmware
  * amdgpu: update navi10 firmware
  * amdgpu: update vcn 4.0.4 firmware
  * amdgpu: update psp 13.0.7 firmware
  * amdgpu: update gc 11.0.2 firmware
  * amdgpu: update yellow carp firmware
  * qcom: correct licence information for SA8775P binaries
  * qcom: update SLPI firmware for RB5 board
  * amdgpu: DMCUB updates for various AMDGPU ASICs
  * qcom: add DSP firmware for SA8775p platform

OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-firmware?expand=0&rev=523
2025-01-21 12:33:12 +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