forked from pool/kernel-firmware
* amdgpu: Revert sienna cichlid dmcub firmware update (bsc#1230007) * iwlwifi: add Bz FW for core89-58 release * rtl_nic: add firmware rtl8126a-3 * linux-firmware: update firmware for MT7921 WiFi device * linux-firmware: update firmware for mediatek bluetooth chip (MT7921) - Update to version 20240830 (git commit d6c600d46981): * amdgpu: update DMCUB to v0.0.232.0 for DCN314 and DCN351 * qcom: vpu: restore compatibility with kernels before 6.6 OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-firmware?expand=0&rev=498
34 lines
603 B
Bash
34 lines
603 B
Bash
#!/bin/sh
|
|
#
|
|
# Generate modalias Supplements lines for the given kernel-firmware topic
|
|
#
|
|
|
|
target=$1
|
|
modules=""
|
|
|
|
sorted_modules () {
|
|
for m in $*; do
|
|
m=$(echo $m | sed -e's/-/_/g')
|
|
echo $m
|
|
done | sort | uniq
|
|
}
|
|
|
|
while read first topic mods; do
|
|
if [ "$topic" = "$target" ]; then
|
|
first=${first%:}
|
|
if [ -z "$mods" ]; then
|
|
modules="$modules $first"
|
|
else
|
|
modules="$modules $mods"
|
|
fi
|
|
fi
|
|
done < topics.list
|
|
|
|
smodules=$(sorted_modules $modules)
|
|
|
|
for m in $smodules; do
|
|
grep '^'$m':' aliases.list | sed -e's/^.*: \(.*\)$/Supplements: modalias(\1)/g'
|
|
done | sort | uniq
|
|
|
|
exit 0
|