Blame SOURCES/firmware.prov

a008c1
#!/bin/sh
a008c1
#
a008c1
# firmware.prov - Automatically extract any and all firmware dependencies from
a008c1
#                 kernel object (.ko) files and add to RPM deps.
a008c1
a008c1
IFS=$'\n'
a008c1
a008c1
for module in $(grep -E '/lib/modules/.+\.ko(\.gz|\.bz2|\.xz)?$') $*;
a008c1
do
a008c1
    for firmware in `/sbin/modinfo -F firmware $module`;
a008c1
    do
a008c1
        echo "firmware($firmware)"
a008c1
    done
a008c1
done