]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
linux-firmware: fix zst install suffix
authorAntonin Godard <antonin.godard@bootlin.com>
Thu, 24 Apr 2025 12:45:59 +0000 (14:45 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 29 Apr 2025 08:53:05 +0000 (09:53 +0100)
The linux-firmware Makefile defines an 'install-zst' rule, but currently
fw_compr_suffix() return the '-zstd' suffix when FIRMWARE_COMPRESSION is
set to 'zstd' which produces:

  make: *** No rule to make target 'install-zstd'.

Return '-zst' instead to properly run 'make install-zst'.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/linux-firmware/linux-firmware_20250410.bb

index f12bb2c6d37deba918e69a1c659ca536cfca48e8..5dd178c03e3aff16d43962ad12574ee92662ea5b 100644 (file)
@@ -269,6 +269,8 @@ def fw_compr_suffix(d):
     compr = d.getVar('FIRMWARE_COMPRESSION')
     if compr == '':
         return ''
+    if compr == 'zstd':
+        compr = 'zst'
     return '-' + compr
 
 do_compile() {