linux-firmware: allow LINUX_FIRMWARE_FILES to contain wildcards
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Sun, 24 Apr 2016 21:34:51 +0000 (23:34 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 24 Apr 2016 21:34:51 +0000 (23:34 +0200)
This commit will allow the LINUX_FIRMWARE_FILES variable to contain
wildcards, which will simplify the handling of firmware that are
available in numerous revisions.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/linux-firmware/linux-firmware.mk

index 28fe66c24607fcc6d4989258ff140d698eb1ff57..c33eb9518bad9b801a5e3baa38091c40f3df7a9a 100644 (file)
@@ -356,7 +356,8 @@ endif
 
 ifneq ($(LINUX_FIRMWARE_FILES),)
 define LINUX_FIRMWARE_INSTALL_FILES
-       $(TAR) c -C $(@D) $(sort $(LINUX_FIRMWARE_FILES)) | \
+       cd $(@D) ; \
+       $(TAR) c $(sort $(LINUX_FIRMWARE_FILES)) | \
                $(TAR) x -C $(TARGET_DIR)/lib/firmware
 endef
 endif