|
@@ -640,13 +640,11 @@ LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.moxa
|
|
endif
|
|
endif
|
|
|
|
|
|
ifneq ($(LINUX_FIRMWARE_FILES)$(LINUX_FIRMWARE_DIRS),)
|
|
ifneq ($(LINUX_FIRMWARE_FILES)$(LINUX_FIRMWARE_DIRS),)
|
|
|
|
+
|
|
define LINUX_FIRMWARE_BUILD_CMDS
|
|
define LINUX_FIRMWARE_BUILD_CMDS
|
|
cd $(@D) && \
|
|
cd $(@D) && \
|
|
$(TAR) cf br-firmware.tar $(sort $(LINUX_FIRMWARE_FILES) $(LINUX_FIRMWARE_DIRS))
|
|
$(TAR) cf br-firmware.tar $(sort $(LINUX_FIRMWARE_FILES) $(LINUX_FIRMWARE_DIRS))
|
|
endef
|
|
endef
|
|
-endif
|
|
|
|
-
|
|
|
|
-ifneq ($(LINUX_FIRMWARE_FILES)$(LINUX_FIRMWARE_DIRS),)
|
|
|
|
|
|
|
|
# Most firmware files are under a proprietary license, so no need to
|
|
# Most firmware files are under a proprietary license, so no need to
|
|
# repeat it for every selections above. Those firmwares that have more
|
|
# repeat it for every selections above. Those firmwares that have more
|
|
@@ -662,8 +660,6 @@ LINUX_FIRMWARE_ALL_LICENSE_FILES += WHENCE
|
|
# duplicates
|
|
# duplicates
|
|
LINUX_FIRMWARE_LICENSE_FILES = $(sort $(LINUX_FIRMWARE_ALL_LICENSE_FILES))
|
|
LINUX_FIRMWARE_LICENSE_FILES = $(sort $(LINUX_FIRMWARE_ALL_LICENSE_FILES))
|
|
|
|
|
|
-endif
|
|
|
|
-
|
|
|
|
# Some firmware are distributed as a symlink, for drivers to load them using a
|
|
# Some firmware are distributed as a symlink, for drivers to load them using a
|
|
# defined name other than the real one. Since 9cfefbd7fbda ("Remove duplicate
|
|
# defined name other than the real one. Since 9cfefbd7fbda ("Remove duplicate
|
|
# symlinks") those symlink aren't distributed in linux-firmware but are created
|
|
# symlinks") those symlink aren't distributed in linux-firmware but are created
|
|
@@ -688,6 +684,8 @@ define LINUX_FIRMWARE_INSTALL_FW
|
|
done
|
|
done
|
|
endef
|
|
endef
|
|
|
|
|
|
|
|
+endif # LINUX_FIRMWARE_FILES || LINUX_FIRMWARE_DIRS
|
|
|
|
+
|
|
define LINUX_FIRMWARE_INSTALL_TARGET_CMDS
|
|
define LINUX_FIRMWARE_INSTALL_TARGET_CMDS
|
|
$(call LINUX_FIRMWARE_INSTALL_FW, $(TARGET_DIR)/lib/firmware)
|
|
$(call LINUX_FIRMWARE_INSTALL_FW, $(TARGET_DIR)/lib/firmware)
|
|
endef
|
|
endef
|