Takashi Iwai
f4daba6a5b
* qcom: venus-5.4: add venus firmware file for qcs615 * qcom: update venus firmware file for SC7280 * QCA: Add 22 bluetooth firmware nvm files for QCA2066 - Update to version 20241112 (git commit c57a0a42468b): * mediatek MT7922: update bluetooth firmware to 20241106163512 * mediatek MT7921: update bluetooth firmware to 20241106151414 * linux-firmware: update firmware for MT7922 WiFi device * linux-firmware: update firmware for MT7921 WiFi device * qcom: Add QDU100 firmware image files. * qcom: Update aic100 firmware files * dedup-firmware.sh: fix infinite loop for --verbose * rtl_bt: Update RTL8852BT/RTL8852BE-VT BT USB FW to 0x04D7_63F7 * cnm: update chips&media wave521c firmware. * mediatek MT7920: update bluetooth firmware to 20241104091246 * linux-firmware: update firmware for MT7920 WiFi device * copy-firmware.sh: Run check_whence.py only if in a git repo * cirrus: cs35l56: Add firmware for Cirrus CS35L56 for various Dell laptops * amdgpu: update DMCUB to v9.0.10.0 for DCN351 * rtw89: 8852a: update fw to v0.13.36.2 * rtw88: Add firmware v52.14.0 for RTL8812AU * i915: Update Xe2LPD DMC to v2.23 * linux-firmware: update firmware for mediatek bluetooth chip (MT7925) * linux-firmware: update firmware for MT7925 WiFi device * WHENCE: Add sof-tolg for mt8195 * linux-firmware: Update firmware file for Intel BlazarI core * qcom: Add link for QCS6490 GPU firmware * qcom: update gpu firmwares for qcs615 chipset * cirrus: cs35l56: Update firmware for Cirrus Amps for some HP laptops OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-firmware?expand=0&rev=508
103 lines
2.5 KiB
Bash
103 lines
2.5 KiB
Bash
#!/bin/sh
|
|
#
|
|
# makespec.sh VERSION < kernel-firmware.spec.in > kernel-firmware.spec
|
|
#
|
|
|
|
export LANG=C
|
|
version="$1"
|
|
|
|
topics=$(awk '{print $1}' topicdefs | sort)
|
|
|
|
define_subpackage () {
|
|
local topic="$1"
|
|
local desc=$(grep '^'"$topic"'[[:space:]]' topicdefs | sed -e's/^[a-zA-Z0-9-]*[[:space:]]*//')
|
|
echo "%package $topic"
|
|
echo "Summary: Kernel firmware files for $desc"
|
|
echo "Group: System/Kernel"
|
|
echo "Requires(post): /usr/bin/mkdir /usr/bin/touch"
|
|
echo "Requires(postun):/usr/bin/mkdir /usr/bin/touch"
|
|
echo "Requires(post): dracut >= 049"
|
|
echo "Conflicts: kernel < 5.3"
|
|
echo "Conflicts: kernel-firmware < %{version}"
|
|
echo "Conflicts: kernel-firmware-uncompressed"
|
|
echo "%if 0%{?suse_version} >= 1550"
|
|
echo "# make sure we have post-usrmerge filesystem package on TW"
|
|
echo "Conflicts: filesystem < 84"
|
|
echo "%endif"
|
|
grep "^${topic}:" topicprovs | sed -e's/^[^ \t]*:[[:space:]]*//g'
|
|
sh ./get_supplements.sh $topic
|
|
echo
|
|
echo "%description $topic"
|
|
echo "This package contains compressed kernel firmware files for"
|
|
echo "$desc."
|
|
echo
|
|
}
|
|
|
|
define_post () {
|
|
local l="$*"
|
|
if [ -z "$l" -a -f uncompressed-post ]; then
|
|
cat uncompressed-post
|
|
return 0
|
|
fi
|
|
if [ -n "$l" -a -f "$l"-post ]; then
|
|
cat "$l"-post
|
|
return 0
|
|
fi
|
|
test -n "$l" && l=" $l"
|
|
echo "%post$l"
|
|
echo "%{?regenerate_initrd_post}"
|
|
echo
|
|
echo "%postun$l"
|
|
echo "%{?regenerate_initrd_post}"
|
|
echo
|
|
echo "%posttrans$l"
|
|
echo "%{?regenerate_initrd_posttrans}"
|
|
}
|
|
|
|
sed -e"s/@@VERSION@@/$version/g" | while read line; do
|
|
if [ "$line" = "@@ALLPROVS@@" ]; then
|
|
sed -e's/^[^ \t]*:[[:space:]]*//g' topicprovs
|
|
continue
|
|
fi
|
|
if [ "$line" = "@@SUBPKGLIST@@" ]; then
|
|
for t in $topics; do
|
|
echo "Requires: %{name}-$t = %{version}"
|
|
done
|
|
continue
|
|
fi
|
|
if [ "$line" = "@@SUBPKGPROVS@@" ]; then
|
|
for t in $topics; do
|
|
echo "Provides: %{name}-$t = %{version}"
|
|
done
|
|
continue
|
|
fi
|
|
if [ "$line" = "@@SUBPACKAGES@@" ]; then
|
|
for t in $topics; do
|
|
define_subpackage $t
|
|
done
|
|
continue
|
|
fi
|
|
case "$line" in
|
|
@@POST@@*)
|
|
define_post $(echo "$line" | sed -e's/^@@POST@@ *//')
|
|
continue;;
|
|
esac
|
|
if [ "$line" = "@@SUBPKGPOSTS@@" ]; then
|
|
for t in $topics; do
|
|
echo
|
|
define_post $t
|
|
done
|
|
continue
|
|
fi
|
|
if [ "$line" = "@@SUBPKGFILES@@" ]; then
|
|
for t in $topics; do
|
|
echo "%files -f files-$t $t"
|
|
echo
|
|
done
|
|
continue
|
|
fi
|
|
echo "$line"
|
|
done
|
|
|
|
exit 0
|