Takashi Iwai
31cec0f276
* amdgpu: Add VPE 6.1.3 microcode * amdgpu: add SDMA 6.1.2 microcode * amdgpu: Add support for PSP 14.0.4 * amdgpu: add GC 11.5.2 microcode * qcom: qcm6490: add ADSP and CDSP firmware * linux-firmware: Update firmware file for Intel Bluetooth Magnetor core * linux-firmware: Update firmware file for Intel BlazarU core * linux-firmware: Update firmware file for Intel Bluetooth Solar core - Temporary fix for the missing symlink installations: copy-firmware-fix-symlink-without-compress.patch - Update to version 20240911 (git commit 59def907425d): * rtl_bt: Update RTL8852B BT USB FW to 0x0447_9301 (bsc#1229272) - Update to version 20240910 (git commit 2a7b69a3fa30): * realtek: rt1320: Add patch firmware of MCU * i915: Update MTL DMC v2.23 * cirrus: cs35l56: Add firmware for Cirrus CS35L54 for some HP laptops OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-firmware?expand=0&rev=500
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
|