File bsc1192160-rpm-config-SUSE-support-compressed-firmware-files.patch of Package rpm-config-SUSE.21869

commit e4c04aca07effd87b6b568b1e1603cd9bbb3429f
Author: Takashi Iwai <tiwai@suse.de>
Date:   Mon May 27 20:10:59 2019 +0200

    Add support for compressed firmware files
    
    The upcoming kernel will support the compressed firmware files, and
    this patch corresponds to that kernel change, fixing firmware.prov to
    deal with the xz-compressed firmware files as well.
    
    Signed-off-by: Takashi Iwai <tiwai@suse.de>

diff --git a/scripts/firmware.prov b/scripts/firmware.prov
index 12f8336..58997ab 100755
--- a/scripts/firmware.prov
+++ b/scripts/firmware.prov
@@ -3,6 +3,11 @@
 
 while read instfile ; do
   case $instfile in
-    */lib/firmware/*) test -f "$instfile" && echo "firmware(${instfile##*/lib/firmware/})" ;;
+    */lib/firmware/*) test -f "$instfile" || continue ;;
+    *) continue ;;
   esac
+
+  instfile=${instfile##*/lib/firmware/}
+  instfile=${instfile%.xz}
+  echo "firmware($instfile)"
 done
openSUSE Build Service is sponsored by