Blame SOURCES/firmware.prov

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