mac80211: move mediatek/ralink firmware to the linux-firmware package

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48180
master
Felix Fietkau 9 years ago
parent 9e5df4a939
commit 78efb85fa1
  1. 43
      package/firmware/linux-firmware/mediatek.mk
  2. 44
      package/kernel/mac80211/Makefile

@ -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))

@ -1047,7 +1047,7 @@ endef
define KernelPackage/mt7601u define KernelPackage/mt7601u
$(call KernelPackage/mac80211/Default) $(call KernelPackage/mac80211/Default)
TITLE:=MT7601U-based USB dongles Wireless Driver 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 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/mediatek/mt7601u/mt7601u.ko
AUTOLOAD:=$(call AutoProbe,mt7601u) AUTOLOAD:=$(call AutoProbe,mt7601u)
endef endef
@ -1259,7 +1259,7 @@ endef
define KernelPackage/rt2800-pci define KernelPackage/rt2800-pci
$(call KernelPackage/rt2x00/Default) $(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) TITLE+= (RT2860 PCI)
FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt2800pci.ko FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt2800pci.ko
AUTOLOAD:=$(call AutoProbe,rt2800pci) AUTOLOAD:=$(call AutoProbe,rt2800pci)
@ -1267,7 +1267,7 @@ endef
define KernelPackage/rt2800-usb define KernelPackage/rt2800-usb
$(call KernelPackage/rt2x00/Default) $(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) TITLE+= (RT2870 USB)
FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt2800usb.ko FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt2800usb.ko
AUTOLOAD:=$(call AutoProbe,rt2800usb) AUTOLOAD:=$(call AutoProbe,rt2800usb)
@ -1276,7 +1276,7 @@ endef
define KernelPackage/rt61-pci define KernelPackage/rt61-pci
$(call KernelPackage/rt2x00/Default) $(call KernelPackage/rt2x00/Default)
DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-pci DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-pci +rt61-pci-firmware
TITLE+= (RT2x61 PCI) TITLE+= (RT2x61 PCI)
FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt61pci.ko FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt61pci.ko
AUTOLOAD:=$(call AutoProbe,rt61pci) AUTOLOAD:=$(call AutoProbe,rt61pci)
@ -1284,7 +1284,7 @@ endef
define KernelPackage/rt73-usb define KernelPackage/rt73-usb
$(call KernelPackage/rt2x00/Default) $(call KernelPackage/rt2x00/Default)
DEPENDS+= @USB_SUPPORT +kmod-rt2x00-usb DEPENDS+= @USB_SUPPORT +kmod-rt2x00-usb +rt73-usb-firmware
TITLE+= (RT73 USB) TITLE+= (RT73 USB)
FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt73usb.ko FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt73usb.ko
AUTOLOAD:=$(call AutoProbe,rt73usb) 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 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(IPW2200_NAME)-$(IPW2200_VERSION)/ipw2200*.fw $(1)/lib/firmware
endef 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 define KernelPackage/p54-pci/install
$(INSTALL_DIR) $(1)/lib/firmware $(INSTALL_DIR) $(1)/lib/firmware
$(INSTALL_DATA) $(DL_DIR)/$(P54PCIFW) $(1)/lib/firmware/isl3886pci $(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 $(INSTALL_DATA) $(DL_DIR)/$(P54SPIFW) $(1)/lib/firmware/3826.arm
endef 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 define KernelPackage/wl12xx/install
$(INSTALL_DIR) $(1)/lib/firmware/ti-connectivity $(INSTALL_DIR) $(1)/lib/firmware/ti-connectivity
$(INSTALL_DATA) \ $(INSTALL_DATA) \

Loading…
Cancel
Save