- Update to version 20240728 (git commit bcd040c21dc9): * amdgpu: update DMCUB to v0.0.227.0 for DCN35 and DCN351 * Revert "iwlwifi: update ty/So/Ma firmwares for core89-58 release" (CVE-2023-47210, bsc#1225601, CVE-2023-38417, bsc#1225600) * linux-firmware: update firmware for MT7922 WiFi device * linux-firmware: update firmware for MT7921 WiFi device * linux-firmware: update firmware for mediatek bluetooth chip (MT7922) * linux-firmware: update firmware for mediatek bluetooth chip (MT7921) * iwlwifi: add gl FW for core89-58 release * iwlwifi: update ty/So/Ma firmwares for core89-58 release * iwlwifi: update cc/Qu/QuZ firmwares for core89-58 release * mediatek: Update mt8195 SOF firmware and sof-tplg * ASoC: tas2781: fix the license issue for tas781 firmware * rtl_bt: Update RTL8852B BT USB FW to 0x048F_4008 * .gitignore: Ignore intermediate files * i915: Update Xe2LPD DMC to v2.21 * qcom: move signed x1e80100 signed firmware to the SoC subdir * qcom: add video firmware file for vpu-3.0 * intel: avs: Add topology file for I2S Analog Devices 4567 * intel: avs: Add topology file for I2S Nuvoton 8825 * intel: avs: Add topology file for I2S Maxim 98927 * intel: avs: Add topology file for I2S Maxim 98373 * intel: avs: Add topology file for I2S Maxim 98357a * intel: avs: Add topology file for I2S Dialog 7219 * intel: avs: Add topology file for I2S Realtek 5663 * intel: avs: Add topology file for I2S Realtek 5640 * intel: avs: Add topology file for I2S Realtek 5514 * intel: avs: Add topology file for I2S Realtek 298 * intel: avs: Add topology file for I2S Realtek 286 * intel: avs: Add topology file for I2S Realtek 274 OBS-URL: https://build.opensuse.org/request/show/1190776 OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-firmware?expand=0&rev=492
105 lines
1.9 KiB
Bash
105 lines
1.9 KiB
Bash
#!/bin/sh
|
|
#
|
|
# Read WHENCE from stdin create files-xxx for each topic
|
|
#
|
|
# usage: make-files.sh [-v] topics.list DESTDIR < WHENCE
|
|
#
|
|
|
|
verbose=:
|
|
|
|
if [ x"$1" = x"-v" ]; then
|
|
verbose=echo
|
|
shift
|
|
fi
|
|
|
|
topics="$1"
|
|
DESTDIR="$2"
|
|
fwdir=${3:-/lib/firmware}
|
|
dest=$DESTDIR/$fwdir
|
|
|
|
do_compress=1
|
|
|
|
if [ -n "$do_compress" ]; then
|
|
cext=".xz"
|
|
else
|
|
cext=""
|
|
fi
|
|
|
|
make_dirs () {
|
|
local f="$1"
|
|
local d=$(dirname "$f")
|
|
if [ "$d" != "." ]; then
|
|
while true; do
|
|
if ! grep -q '%dir '"$fwdir/$d"'$' files-$topic; then
|
|
echo "%dir $fwdir/$d" >> files-$topic
|
|
fi
|
|
case "$d" in
|
|
*/*) d=${d%/*};;
|
|
*) break;;
|
|
esac
|
|
done
|
|
fi
|
|
}
|
|
|
|
add_file () {
|
|
local f="$1"
|
|
make_dirs "$f"
|
|
if [ -e "$dest/$f" ]; then
|
|
echo "\"$fwdir/$f\"" >> files-$topic
|
|
else
|
|
echo "\"$fwdir/$f$cext\"" >> files-$topic
|
|
fi
|
|
}
|
|
|
|
sub="xxx"
|
|
while read l; do
|
|
test -z "$l" && continue
|
|
case "$l" in
|
|
----*)
|
|
sub=""
|
|
topic=""
|
|
;;
|
|
Driver:*)
|
|
test -n "$sub" && continue
|
|
sub=$(echo "$l" | sed -e's/Driver: *//' -e's/[ :].*$//')
|
|
m=$(grep -m1 "^$sub": "$topics" | sed -e's/^.*:[[:space:]]*//')
|
|
test -z "$m" && continue
|
|
set -- $m
|
|
topic="$1"
|
|
if [ "$topic" = "SKIP" ]; then
|
|
continue
|
|
fi
|
|
$verbose "Switching to topic $topic"
|
|
if [ -n "$topic" ]; then
|
|
if [ ! -s files-$topic ]; then
|
|
echo "%dir $fwdir" > files-$topic
|
|
fi
|
|
fi
|
|
;;
|
|
File:*|RawFile:*)
|
|
test "$topic" = "SKIP" && continue
|
|
if [ -z "$topic" ]; then
|
|
echo "ERROR: no topic found for $l"
|
|
exit 1
|
|
fi
|
|
f=$(echo "$l" | sed -e's/^File: *//' -e's/^RawFile: *//' -e's/"//g' -e's/\\//g')
|
|
case "$f" in
|
|
*/README*)
|
|
continue;;
|
|
esac
|
|
add_file "$f"
|
|
;;
|
|
Link:*)
|
|
test "$topic" = "SKIP" && continue
|
|
if [ -z "$topic" ]; then
|
|
echo "ERROR: no topic found for $l"
|
|
exit 1
|
|
fi
|
|
f=$(echo "$l" | sed -e's/^Link: *//' -e's/ *->.*$//' -es'/\\//g')
|
|
add_file "$f"
|
|
;;
|
|
esac
|
|
done
|
|
|
|
exit 0
|