kernel-firmware/make-files.sh

114 lines
2.1 KiB
Bash
Raw Normal View History

#!/bin/sh
#
Accepting request 1108150 from home:tiwai:branches:Kernel:HEAD - Update to version 20230829 (git commit 49f9e3479fb5): * i915: Update MTL DMC to v2.16 * copy-firmware: Introduce 'RawFile' keyword * copy-firmware: Support additional compressor options * linux-firmware: Update firmware file for Intel Bluetooth AX203 * linux-firmware: Update firmware file for Intel Bluetooth AX203 * linux-firmware: Update firmware file for Intel Bluetooth AX211 * linux-firmware: Update firmware file for Intel Bluetooth AX211 * linux-firmware: Update firmware file for Intel Bluetooth AX210 * linux-firmware: Update firmware file for Intel Bluetooth AX200 * linux-firmware: Update firmware file for Intel Bluetooth AX201 * linux-firmware: update firmware for qat_4xxx devices * linux-firmware: Update AMD SEV firmware * amdgpu: update DMCUB to 0.0.181.0 for various AMDGPU ASICs * rtw89: 8852b: update fw to v0.29.29.3 * rtw89: 8851b: update fw to v0.29.41.2 * i915: add GSC 102.0.0.1655 for MTL * amdgpu: DMCUB updates for various AMDGPU asics - Switch to the compressed / split installation as default, make uncompressed / raw package as a multibuild flavor, instead as a preliminary work for dropping the big kernel-firmware (bsc#1214789) - Use the standard copy-file.sh for split package installation, too Another scirpt, make-files.sh, is provided for generating file lists - Ignore README in copy-file.sh: copy-file-ignore-README.patch - Workaround for installing raw files for ucode-amd: amd-ucode-rawfile.patch - Drop the obsolsted revert of rtw8822c_fw.bin - Update aliases from 6.5 OBS-URL: https://build.opensuse.org/request/show/1108150 OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-firmware?expand=0&rev=440
2023-08-30 17:16:26 +02:00
# Read WHENCE from stdin create files-xxx for each topic
#
Accepting request 1108150 from home:tiwai:branches:Kernel:HEAD - Update to version 20230829 (git commit 49f9e3479fb5): * i915: Update MTL DMC to v2.16 * copy-firmware: Introduce 'RawFile' keyword * copy-firmware: Support additional compressor options * linux-firmware: Update firmware file for Intel Bluetooth AX203 * linux-firmware: Update firmware file for Intel Bluetooth AX203 * linux-firmware: Update firmware file for Intel Bluetooth AX211 * linux-firmware: Update firmware file for Intel Bluetooth AX211 * linux-firmware: Update firmware file for Intel Bluetooth AX210 * linux-firmware: Update firmware file for Intel Bluetooth AX200 * linux-firmware: Update firmware file for Intel Bluetooth AX201 * linux-firmware: update firmware for qat_4xxx devices * linux-firmware: Update AMD SEV firmware * amdgpu: update DMCUB to 0.0.181.0 for various AMDGPU ASICs * rtw89: 8852b: update fw to v0.29.29.3 * rtw89: 8851b: update fw to v0.29.41.2 * i915: add GSC 102.0.0.1655 for MTL * amdgpu: DMCUB updates for various AMDGPU asics - Switch to the compressed / split installation as default, make uncompressed / raw package as a multibuild flavor, instead as a preliminary work for dropping the big kernel-firmware (bsc#1214789) - Use the standard copy-file.sh for split package installation, too Another scirpt, make-files.sh, is provided for generating file lists - Ignore README in copy-file.sh: copy-file-ignore-README.patch - Workaround for installing raw files for ucode-amd: amd-ucode-rawfile.patch - Drop the obsolsted revert of rtw8822c_fw.bin - Update aliases from 6.5 OBS-URL: https://build.opensuse.org/request/show/1108150 OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-firmware?expand=0&rev=440
2023-08-30 17:16:26 +02:00
# usage: make-files.sh [-v] topics.list DESTDIR < WHENCE
#
Accepting request 742085 from home:tiwai:branches:Kernel:HEAD - Update to version 20191022 (git-commit: 2b016afc348b): * linux-firmware: Update AMD cpu microcode * linux-firmware: Update firmware file for Intel Bluetooth AX200 * linux-firmware: Update firmware file for Intel Bluetooth AX201 * linux-firmware: Update firmware file for Intel Bluetooth 9560 * linux-firmware: Update firmware file for Intel Bluetooth 9260 * amdgpu: add initial navi14 firmware form 19.30 * rtlwifi: rtl8821ae: Add firmware for the RTL8812AE variant. * ice: Fix up WHENCE entry and symlink * nvidia: Update Tegra210 XUSB firmware to v50.24 * nvidia: Add XUSB firmware for Tegra194 * Remove duplicate symlinks * copy-firmware: Create symlinks from WHENCE file * Make symlinks consistent * amdgpu: update vega20 ucode for 19.30 * amdgpu: update vega12 ucode for 19.30 * amdgpu: update vega10 ucode for 19.30 * amdgpu: update picasso ucode for 19.30 * amdgpu: update raven2 ucode for 19.30 * amdgpu: update raven ucode for 19.30 * amdgpu: add new raven rlc firmware * ice: Add package file for Intel E800 series driver * amdgpu: add initial navi10 firmware * drm/i915/firmware: Add v9.0.0 of HuC for Icelake * drm/i915/firmware: Add v4.0.0 of HuC for Cometlake * drm/i915/firmware: Add v4.0.0 of HuC for Geminilake * drm/i915/firmware: Add v2.0.0 of HuC for Broxton * drm/i915/firmware: Add v4.0.0 of HuC for Kabylake * drm/i915/firmware: Add v2.0.0 of HuC for Skylake * drm/i915/firmware: Add v33 of GuC for CML OBS-URL: https://build.opensuse.org/request/show/742085 OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-firmware?expand=0&rev=275
2019-10-23 11:50:13 +02:00
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
}
copy_link () {
local f="$1"
Accepting request 742085 from home:tiwai:branches:Kernel:HEAD - Update to version 20191022 (git-commit: 2b016afc348b): * linux-firmware: Update AMD cpu microcode * linux-firmware: Update firmware file for Intel Bluetooth AX200 * linux-firmware: Update firmware file for Intel Bluetooth AX201 * linux-firmware: Update firmware file for Intel Bluetooth 9560 * linux-firmware: Update firmware file for Intel Bluetooth 9260 * amdgpu: add initial navi14 firmware form 19.30 * rtlwifi: rtl8821ae: Add firmware for the RTL8812AE variant. * ice: Fix up WHENCE entry and symlink * nvidia: Update Tegra210 XUSB firmware to v50.24 * nvidia: Add XUSB firmware for Tegra194 * Remove duplicate symlinks * copy-firmware: Create symlinks from WHENCE file * Make symlinks consistent * amdgpu: update vega20 ucode for 19.30 * amdgpu: update vega12 ucode for 19.30 * amdgpu: update vega10 ucode for 19.30 * amdgpu: update picasso ucode for 19.30 * amdgpu: update raven2 ucode for 19.30 * amdgpu: update raven ucode for 19.30 * amdgpu: add new raven rlc firmware * ice: Add package file for Intel E800 series driver * amdgpu: add initial navi10 firmware * drm/i915/firmware: Add v9.0.0 of HuC for Icelake * drm/i915/firmware: Add v4.0.0 of HuC for Cometlake * drm/i915/firmware: Add v4.0.0 of HuC for Geminilake * drm/i915/firmware: Add v2.0.0 of HuC for Broxton * drm/i915/firmware: Add v4.0.0 of HuC for Kabylake * drm/i915/firmware: Add v2.0.0 of HuC for Skylake * drm/i915/firmware: Add v33 of GuC for CML OBS-URL: https://build.opensuse.org/request/show/742085 OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-firmware?expand=0&rev=275
2019-10-23 11:50:13 +02:00
local lf="$2"
Accepting request 1108150 from home:tiwai:branches:Kernel:HEAD - Update to version 20230829 (git commit 49f9e3479fb5): * i915: Update MTL DMC to v2.16 * copy-firmware: Introduce 'RawFile' keyword * copy-firmware: Support additional compressor options * linux-firmware: Update firmware file for Intel Bluetooth AX203 * linux-firmware: Update firmware file for Intel Bluetooth AX203 * linux-firmware: Update firmware file for Intel Bluetooth AX211 * linux-firmware: Update firmware file for Intel Bluetooth AX211 * linux-firmware: Update firmware file for Intel Bluetooth AX210 * linux-firmware: Update firmware file for Intel Bluetooth AX200 * linux-firmware: Update firmware file for Intel Bluetooth AX201 * linux-firmware: update firmware for qat_4xxx devices * linux-firmware: Update AMD SEV firmware * amdgpu: update DMCUB to 0.0.181.0 for various AMDGPU ASICs * rtw89: 8852b: update fw to v0.29.29.3 * rtw89: 8851b: update fw to v0.29.41.2 * i915: add GSC 102.0.0.1655 for MTL * amdgpu: DMCUB updates for various AMDGPU asics - Switch to the compressed / split installation as default, make uncompressed / raw package as a multibuild flavor, instead as a preliminary work for dropping the big kernel-firmware (bsc#1214789) - Use the standard copy-file.sh for split package installation, too Another scirpt, make-files.sh, is provided for generating file lists - Ignore README in copy-file.sh: copy-file-ignore-README.patch - Workaround for installing raw files for ucode-amd: amd-ucode-rawfile.patch - Drop the obsolsted revert of rtw8822c_fw.bin - Update aliases from 6.5 OBS-URL: https://build.opensuse.org/request/show/1108150 OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-firmware?expand=0&rev=440
2023-08-30 17:16:26 +02:00
local src="${f%/*}"
if [ "$src" = "$f" ]; then
src="$lf"
else
Accepting request 1108150 from home:tiwai:branches:Kernel:HEAD - Update to version 20230829 (git commit 49f9e3479fb5): * i915: Update MTL DMC to v2.16 * copy-firmware: Introduce 'RawFile' keyword * copy-firmware: Support additional compressor options * linux-firmware: Update firmware file for Intel Bluetooth AX203 * linux-firmware: Update firmware file for Intel Bluetooth AX203 * linux-firmware: Update firmware file for Intel Bluetooth AX211 * linux-firmware: Update firmware file for Intel Bluetooth AX211 * linux-firmware: Update firmware file for Intel Bluetooth AX210 * linux-firmware: Update firmware file for Intel Bluetooth AX200 * linux-firmware: Update firmware file for Intel Bluetooth AX201 * linux-firmware: update firmware for qat_4xxx devices * linux-firmware: Update AMD SEV firmware * amdgpu: update DMCUB to 0.0.181.0 for various AMDGPU ASICs * rtw89: 8852b: update fw to v0.29.29.3 * rtw89: 8851b: update fw to v0.29.41.2 * i915: add GSC 102.0.0.1655 for MTL * amdgpu: DMCUB updates for various AMDGPU asics - Switch to the compressed / split installation as default, make uncompressed / raw package as a multibuild flavor, instead as a preliminary work for dropping the big kernel-firmware (bsc#1214789) - Use the standard copy-file.sh for split package installation, too Another scirpt, make-files.sh, is provided for generating file lists - Ignore README in copy-file.sh: copy-file-ignore-README.patch - Workaround for installing raw files for ucode-amd: amd-ucode-rawfile.patch - Drop the obsolsted revert of rtw8822c_fw.bin - Update aliases from 6.5 OBS-URL: https://build.opensuse.org/request/show/1108150 OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-firmware?expand=0&rev=440
2023-08-30 17:16:26 +02:00
src="$src/$lf"
fi
make_dirs "$f"
if [ -d "$dest/$src" ]; 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
Accepting request 742085 from home:tiwai:branches:Kernel:HEAD - Update to version 20191022 (git-commit: 2b016afc348b): * linux-firmware: Update AMD cpu microcode * linux-firmware: Update firmware file for Intel Bluetooth AX200 * linux-firmware: Update firmware file for Intel Bluetooth AX201 * linux-firmware: Update firmware file for Intel Bluetooth 9560 * linux-firmware: Update firmware file for Intel Bluetooth 9260 * amdgpu: add initial navi14 firmware form 19.30 * rtlwifi: rtl8821ae: Add firmware for the RTL8812AE variant. * ice: Fix up WHENCE entry and symlink * nvidia: Update Tegra210 XUSB firmware to v50.24 * nvidia: Add XUSB firmware for Tegra194 * Remove duplicate symlinks * copy-firmware: Create symlinks from WHENCE file * Make symlinks consistent * amdgpu: update vega20 ucode for 19.30 * amdgpu: update vega12 ucode for 19.30 * amdgpu: update vega10 ucode for 19.30 * amdgpu: update picasso ucode for 19.30 * amdgpu: update raven2 ucode for 19.30 * amdgpu: update raven ucode for 19.30 * amdgpu: add new raven rlc firmware * ice: Add package file for Intel E800 series driver * amdgpu: add initial navi10 firmware * drm/i915/firmware: Add v9.0.0 of HuC for Icelake * drm/i915/firmware: Add v4.0.0 of HuC for Cometlake * drm/i915/firmware: Add v4.0.0 of HuC for Geminilake * drm/i915/firmware: Add v2.0.0 of HuC for Broxton * drm/i915/firmware: Add v4.0.0 of HuC for Kabylake * drm/i915/firmware: Add v2.0.0 of HuC for Skylake * drm/i915/firmware: Add v33 of GuC for CML OBS-URL: https://build.opensuse.org/request/show/742085 OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-firmware?expand=0&rev=275
2019-10-23 11:50:13 +02:00
$verbose "Switching to topic $topic"
if [ -n "$topic" ]; then
if [ ! -s files-$topic ]; then
echo "%dir $fwdir" > files-$topic
fi
fi
;;
Accepting request 1108150 from home:tiwai:branches:Kernel:HEAD - Update to version 20230829 (git commit 49f9e3479fb5): * i915: Update MTL DMC to v2.16 * copy-firmware: Introduce 'RawFile' keyword * copy-firmware: Support additional compressor options * linux-firmware: Update firmware file for Intel Bluetooth AX203 * linux-firmware: Update firmware file for Intel Bluetooth AX203 * linux-firmware: Update firmware file for Intel Bluetooth AX211 * linux-firmware: Update firmware file for Intel Bluetooth AX211 * linux-firmware: Update firmware file for Intel Bluetooth AX210 * linux-firmware: Update firmware file for Intel Bluetooth AX200 * linux-firmware: Update firmware file for Intel Bluetooth AX201 * linux-firmware: update firmware for qat_4xxx devices * linux-firmware: Update AMD SEV firmware * amdgpu: update DMCUB to 0.0.181.0 for various AMDGPU ASICs * rtw89: 8852b: update fw to v0.29.29.3 * rtw89: 8851b: update fw to v0.29.41.2 * i915: add GSC 102.0.0.1655 for MTL * amdgpu: DMCUB updates for various AMDGPU asics - Switch to the compressed / split installation as default, make uncompressed / raw package as a multibuild flavor, instead as a preliminary work for dropping the big kernel-firmware (bsc#1214789) - Use the standard copy-file.sh for split package installation, too Another scirpt, make-files.sh, is provided for generating file lists - Ignore README in copy-file.sh: copy-file-ignore-README.patch - Workaround for installing raw files for ucode-amd: amd-ucode-rawfile.patch - Drop the obsolsted revert of rtw8822c_fw.bin - Update aliases from 6.5 OBS-URL: https://build.opensuse.org/request/show/1108150 OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-firmware?expand=0&rev=440
2023-08-30 17:16:26 +02:00
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/"//g' -e's/\\//g')
Accepting request 1108150 from home:tiwai:branches:Kernel:HEAD - Update to version 20230829 (git commit 49f9e3479fb5): * i915: Update MTL DMC to v2.16 * copy-firmware: Introduce 'RawFile' keyword * copy-firmware: Support additional compressor options * linux-firmware: Update firmware file for Intel Bluetooth AX203 * linux-firmware: Update firmware file for Intel Bluetooth AX203 * linux-firmware: Update firmware file for Intel Bluetooth AX211 * linux-firmware: Update firmware file for Intel Bluetooth AX211 * linux-firmware: Update firmware file for Intel Bluetooth AX210 * linux-firmware: Update firmware file for Intel Bluetooth AX200 * linux-firmware: Update firmware file for Intel Bluetooth AX201 * linux-firmware: update firmware for qat_4xxx devices * linux-firmware: Update AMD SEV firmware * amdgpu: update DMCUB to 0.0.181.0 for various AMDGPU ASICs * rtw89: 8852b: update fw to v0.29.29.3 * rtw89: 8851b: update fw to v0.29.41.2 * i915: add GSC 102.0.0.1655 for MTL * amdgpu: DMCUB updates for various AMDGPU asics - Switch to the compressed / split installation as default, make uncompressed / raw package as a multibuild flavor, instead as a preliminary work for dropping the big kernel-firmware (bsc#1214789) - Use the standard copy-file.sh for split package installation, too Another scirpt, make-files.sh, is provided for generating file lists - Ignore README in copy-file.sh: copy-file-ignore-README.patch - Workaround for installing raw files for ucode-amd: amd-ucode-rawfile.patch - Drop the obsolsted revert of rtw8822c_fw.bin - Update aliases from 6.5 OBS-URL: https://build.opensuse.org/request/show/1108150 OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-firmware?expand=0&rev=440
2023-08-30 17:16:26 +02:00
case "$f" in
*/README)
continue;;
esac
make_dirs "$f"
echo "\"$fwdir/$f$cext\"" >> files-$topic
;;
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')
d=$(echo "$l" | sed -e's/^.*-> *//' -e's/\\//g')
copy_link "$f" "$d"
;;
esac
done
exit 0