package/linux-firmware: fix build failure when no firmware item selected
authorAndreas Ziegler <br015@umbiko.net>
Tue, 9 Mar 2021 18:25:17 +0000 (18:25 +0000)
committerYann E. MORIN <yann.morin.1998@free.fr>
Tue, 9 Mar 2021 20:00:44 +0000 (21:00 +0100)
commit0f28ed0f623e25913856d84c5a0185ff8bd6f5e2
tree52205b2d74a0ebaeecfc818d5087dd62bcbf1206
parent03fa36df7e6aca0f4a1c8ae2fe691c0cda6ddc7a
package/linux-firmware: fix build failure when no firmware item selected

The latest change in Linux firmware handling breaks the build if no
specific firmware item is selected below BR2_PACKAGE_LINUX_FIRMWARE.

The firmware archive is only created if at least one firmware
sub-category is selected; the installation step wants to unpack the
archive unconditionally.

Use the same condition to control install command definition as in the
build step.

Signed-off-by: Andreas Ziegler <br015@umbiko.net>
[yann.morin.1998@free.fr: use a single conditional block]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/linux-firmware/linux-firmware.mk