kernel-firmware/makespec.sh
Takashi Iwai 79c93a8fc9 Accepting request 1190776 from home:tiwai:branches:Kernel:HEAD
- 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
2024-07-31 15:53:00 +00:00

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