From: Felix Fietkau Date: Sun, 10 Jan 2016 16:36:31 +0000 (+0000) Subject: mac80211: move mediatek/ralink firmware to the linux-firmware package X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=78efb85fa1ae1b64f1aa0521de3ec5b3ba262658;p=librecmc%2Flibrecmc.git mac80211: move mediatek/ralink firmware to the linux-firmware package Signed-off-by: Felix Fietkau SVN-Revision: 48180 --- diff --git a/package/firmware/linux-firmware/mediatek.mk b/package/firmware/linux-firmware/mediatek.mk new file mode 100644 index 0000000000..5d6d592932 --- /dev/null +++ b/package/firmware/linux-firmware/mediatek.mk @@ -0,0 +1,43 @@ +Package/mt7601u = $(call Package/firmware-default,MediaTek MT7601U firmware) +define Package/mt7601u-firmware/install + $(INSTALL_DIR) $(1)/lib/firmware + $(INSTALL_DATA) \ + $(PKG_BUILD_DIR)/mt7601u.bin \ + $(1)/lib/firmware +endef +$(eval $(call BuildPackage,mt7601u)) + +Package/rt2800-pci = $(call Package/firmware-default,Ralink RT28xx/3xxx PCI/SoC firmware) +define Package/rt2800-pci-firmware/install + $(INSTALL_DIR) $(1)/lib/firmware + $(INSTALL_DATA) \ + $(PKG_BUILD_DIR)/rt2860.bin \ + $(PKG_BUILD_DIR)/rt3290.bin \ + $(1)/lib/firmware +endef +$(eval $(call BuildPackage,rt2800-pci)) + +Package/rt2800-usb = $(call Package/firmware-default,Ralink RT28xx/3xxx USB firmware) +define Package/rt2800-usb-firmware/install + $(INSTALL_DIR) $(1)/lib/firmware + $(INSTALL_DATA) $(PKG_BUILD_DIR)/rt2870.bin $(1)/lib/firmware/ +endef +$(eval $(call BuildPackage,rt2800-usb)) + +Package/rt61-pci = $(call Package/firmware-default,Ralink RT2561 firmware) +define Package/rt61-pci-firmware/install + $(INSTALL_DIR) $(1)/lib/firmware + $(INSTALL_DATA) \ + $(PKG_BUILD_DIR)/rt2561.bin \ + $(PKG_BUILD_DIR)/rt2561s.bin \ + $(PKG_BUILD_DIR)/rt2661.bin \ + $(1)/lib/firmware/ +endef +$(eval $(call BuildPackage,rt61-pci)) + +Package/rt73-pci = $(call Package/firmware-default,Ralink RT2573 firmware) +define Package/rt73-usb-firmware/install + $(INSTALL_DIR) $(1)/lib/firmware + $(INSTALL_DATA) $(PKG_BUILD_DIR)/rt73.bin $(1)/lib/firmware/ +endef +$(eval $(call BuildPackage,rt73-pci)) diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile index 998c3af570..336526e7dd 100644 --- a/package/kernel/mac80211/Makefile +++ b/package/kernel/mac80211/Makefile @@ -1047,7 +1047,7 @@ endef define KernelPackage/mt7601u $(call KernelPackage/mac80211/Default) TITLE:=MT7601U-based USB dongles Wireless Driver - DEPENDS+= +kmod-mac80211 +@DRIVER_11N_SUPPORT @USB_SUPPORT +kmod-usb-core + DEPENDS+= +kmod-mac80211 +@DRIVER_11N_SUPPORT @USB_SUPPORT +kmod-usb-core +mt7601u-firmware FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/mediatek/mt7601u/mt7601u.ko AUTOLOAD:=$(call AutoProbe,mt7601u) endef @@ -1259,7 +1259,7 @@ endef define KernelPackage/rt2800-pci $(call KernelPackage/rt2x00/Default) - DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-pci +kmod-rt2800-lib +kmod-rt2800-mmio + DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-pci +kmod-rt2800-lib +kmod-rt2800-mmio +rt2800-pci-firmware TITLE+= (RT2860 PCI) FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt2800pci.ko AUTOLOAD:=$(call AutoProbe,rt2800pci) @@ -1267,7 +1267,7 @@ endef define KernelPackage/rt2800-usb $(call KernelPackage/rt2x00/Default) - DEPENDS+= @USB_SUPPORT +kmod-rt2x00-usb +kmod-rt2800-lib +kmod-lib-crc-ccitt + DEPENDS+= @USB_SUPPORT +kmod-rt2x00-usb +kmod-rt2800-lib +kmod-lib-crc-ccitt +rt2800-usb-firmware TITLE+= (RT2870 USB) FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt2800usb.ko AUTOLOAD:=$(call AutoProbe,rt2800usb) @@ -1276,7 +1276,7 @@ endef define KernelPackage/rt61-pci $(call KernelPackage/rt2x00/Default) - DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-pci + DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-pci +rt61-pci-firmware TITLE+= (RT2x61 PCI) FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt61pci.ko AUTOLOAD:=$(call AutoProbe,rt61pci) @@ -1284,7 +1284,7 @@ endef define KernelPackage/rt73-usb $(call KernelPackage/rt2x00/Default) - DEPENDS+= @USB_SUPPORT +kmod-rt2x00-usb + DEPENDS+= @USB_SUPPORT +kmod-rt2x00-usb +rt73-usb-firmware TITLE+= (RT73 USB) FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt73usb.ko AUTOLOAD:=$(call AutoProbe,rt73usb) @@ -1826,13 +1826,6 @@ define KernelPackage/ipw2200/install $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(IPW2200_NAME)-$(IPW2200_VERSION)/ipw2200*.fw $(1)/lib/firmware endef -define KernelPackage/mt7601u/install - $(INSTALL_DIR) $(1)/lib/firmware - $(INSTALL_DATA) \ - $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/mt7601u.bin \ - $(1)/lib/firmware -endef - define KernelPackage/p54-pci/install $(INSTALL_DIR) $(1)/lib/firmware $(INSTALL_DATA) $(DL_DIR)/$(P54PCIFW) $(1)/lib/firmware/isl3886pci @@ -1848,33 +1841,6 @@ define KernelPackage/p54-spi/install $(INSTALL_DATA) $(DL_DIR)/$(P54SPIFW) $(1)/lib/firmware/3826.arm endef -define KernelPackage/rt2800-pci/install - $(INSTALL_DIR) $(1)/lib/firmware - $(INSTALL_DATA) \ - $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt2860.bin \ - $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt3290.bin \ - $(1)/lib/firmware -endef - -define KernelPackage/rt2800-usb/install - $(INSTALL_DIR) $(1)/lib/firmware - $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt2870.bin $(1)/lib/firmware/ -endef - -define KernelPackage/rt61-pci/install - $(INSTALL_DIR) $(1)/lib/firmware - $(INSTALL_DATA) \ - $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt2561.bin \ - $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt2561s.bin \ - $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt2661.bin \ - $(1)/lib/firmware/ -endef - -define KernelPackage/rt73-usb/install - $(INSTALL_DIR) $(1)/lib/firmware - $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt73.bin $(1)/lib/firmware/ -endef - define KernelPackage/wl12xx/install $(INSTALL_DIR) $(1)/lib/firmware/ti-connectivity $(INSTALL_DATA) \