* amdgpu: DMCUB update for DCN401 * ath12k: WCN7850 hw2.0: update board-2.bin * ath12k: QCN9274 hw2.0: update to WLAN.WBE.1.4.1-00199-QCAHKSWPL_SILICONZ-1 * ath12k: QCN9274 hw2.0: update board-2.bin * ath11k: WCN6750 hw1.0: update board-2.bin * ath11k: QCN9074 hw1.0: update to WLAN.HK.2.9.0.1-02146-QCAHKSWPL_SILICONZ-1 * ath11k: QCA6698AQ hw2.1: add to WLAN.HSP.1.1-04479-QCAHSPSWPL_V1_V2_SILICONZ_IOE-1 * ath11k: QCA6698AQ hw2.1: add board-2.bin * ath11k: QCA6390 hw2.0: update board-2.bin * ath11k: QCA2066 hw2.1: update to WLAN.HSP.1.1-03926.13-QCAHSPSWPL_V2_SILICONZ_CE-2.52297.6 * ath11k: QCA2066 hw2.1: update board-2.bin * ath11k: IPQ8074 hw2.0: update to WLAN.HK.2.9.0.1-02146-QCAHKSWPL_SILICONZ-1 * ath11k: IPQ6018 hw1.0: update to WLAN.HK.2.7.0.1-02409-QCAHKSWPL_SILICONZ-1 * copy-firmware: Fix 'No such file or directory' error. * ath11k: add device-specific firmware for QCM6490 boards * qca: add more WCN3950 1.3 NVM files * qca: add firmware for WCN3950 chips * qca: move QCA6390 firmware to separate section * qca: restore licence information for WCN399x firmware * amdgpu: DMCUB updates for various ASICs * amdgpu: DMCUB updates forvarious AMDGPU ASICs * qca: Update Bluetooth WCN6750 1.1.0-00476 firmware to 1.1.3-00069 * qcom:x1e80100: Support for Lenovo T14s G6 Qualcomm platform * qcom:x1e80100: Support for Lenovo T14s G6 Qualcomm platform - Update aliases from 6.13 - Update to version 20250129 (git commit 211fbc287a0b): * linux-firmware: Update FW files for MRVL SD8997 chips * i915: Update Xe2LPD DMC to v2.27 OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-firmware?expand=0&rev=528
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"
|
|
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
|