]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
linux-firmware: Fix removing unlicensed firmware if compression is used
authorZoltan Boszormenyi <zboszor@gmail.com>
Fri, 17 Oct 2025 09:12:37 +0000 (11:12 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 19 Oct 2025 14:35:07 +0000 (15:35 +0100)
commit79fc52e2d729bf30a901055a9864280d3055bbeb
tree36e06bc74c592feaf566e87c4b09791aef03a5f5
parent2f4d08c0598bb7ef6666fbda3bf5432ede4052d6
linux-firmware: Fix removing unlicensed firmware if compression is used

If FIRMWARE_COMPRESSION is set, the newly added code to remove
unlicensed firmware fails with:

| Remove unlicensed firmware: acenic/tg1.bin
| rm: cannot remove '.../work/all-oe-linux/linux-firmware/20250917/image/usr/lib/firmware/acenic/tg1.bin': No such file or directory

This is because the code does not consider that the file may be
compressed.

Fix it by factoring out the code to construct the compressed file
name suffix from do_install:append() into a python function and
also use it for the actual file names listed in REMOVE_UNLICENSED.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/linux-firmware/linux-firmware_20251011.bb