diff options
Diffstat (limited to 'package/kernel')
-rw-r--r-- | package/kernel/mwlwifi/Makefile | 44 |
1 files changed, 38 insertions, 6 deletions
diff --git a/package/kernel/mwlwifi/Makefile b/package/kernel/mwlwifi/Makefile index 5c3e86f320..9e32f3e9a4 100644 --- a/package/kernel/mwlwifi/Makefile +++ b/package/kernel/mwlwifi/Makefile @@ -27,7 +27,7 @@ include $(INCLUDE_DIR)/package.mk define KernelPackage/mwlwifi SUBMENU:=Wireless Drivers - TITLE:=Marvell 88W8864 wireless driver + TITLE:=Marvell 88W8864/88W8897/88W8964 wireless driver DEPENDS:=+kmod-mac80211 +@DRIVER_11N_SUPPORT +@DRIVER_11AC_SUPPORT +@DRIVER_11W_SUPPORT @PCI_SUPPORT @TARGET_mvebu FILES:=$(PKG_BUILD_DIR)/mwlwifi.ko AUTOLOAD:=$(call AutoLoad,50,mwlwifi) @@ -49,13 +49,45 @@ define Build/Compile modules endef -define KernelPackage/mwlwifi/install +define Package/mwlwifi-firmware-default + SECTION:=firmware + CATEGORY:=Firmware + TITLE:=Marvell $(1) firmware + DEPENDS:=+kmod-mwlwifi @TARGET_mvebu +endef + +define Package/mwlwifi-firmware/install $(INSTALL_DIR) $(1)/lib/firmware $(INSTALL_DIR) $(1)/lib/firmware/mwlwifi - $(CP) $(PKG_BUILD_DIR)/bin/firmware/88W8864.bin $(1)/lib/firmware/mwlwifi/ - $(CP) $(PKG_BUILD_DIR)/bin/firmware/88W8897.bin $(1)/lib/firmware/mwlwifi/ - $(CP) $(PKG_BUILD_DIR)/bin/firmware/88W8964.bin $(1)/lib/firmware/mwlwifi/ - $(CP) $(PKG_BUILD_DIR)/bin/firmware/Marvell_license.txt $(1)/lib/firmware/mwlwifi/ + $(CP) $(PKG_BUILD_DIR)/bin/firmware/$(2) $(1)/lib/firmware/mwlwifi/ + $(CP) $(PKG_BUILD_DIR)/bin/firmware/Marvell_license.txt $(1)/lib/firmware/mwlwifi/$(2).Marvell_license.txt +endef + +define Package/mwlwifi-firmware-88w8864 +$(call Package/mwlwifi-firmware-default,88W8864) +endef + +define Package/mwlwifi-firmware-88w8864/install + $(call Package/mwlwifi-firmware/install,$(1),88W8864.bin) +endef + +define Package/mwlwifi-firmware-88w8897 +$(call Package/mwlwifi-firmware-default,88W8897) +endef + +define Package/mwlwifi-firmware-88w8897/install + $(call Package/mwlwifi-firmware/install,$(1),88W8897.bin) +endef + +define Package/mwlwifi-firmware-88w8964 +$(call Package/mwlwifi-firmware-default,88W8964) +endef + +define Package/mwlwifi-firmware-88w8964/install + $(call Package/mwlwifi-firmware/install,$(1),88W8964.bin) endef $(eval $(call KernelPackage,mwlwifi)) +$(eval $(call BuildPackage,mwlwifi-firmware-88w8864)) +$(eval $(call BuildPackage,mwlwifi-firmware-88w8897)) +$(eval $(call BuildPackage,mwlwifi-firmware-88w8964)) |