X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=package%2Fkernel%2Fmt76%2FMakefile;h=7885825aaa5ecd42a22b086b7c4d32e88b570d20;hb=b8ea9efc5871b0b00b5783817b6c913d8782315e;hp=0f832e44cae7a6a27f1d01e0645c58862d7b30ac;hpb=240137a744f1c2375094cfc9c4e6b3f8936f3201;p=openwrt%2Fstaging%2Fyousong.git diff --git a/package/kernel/mt76/Makefile b/package/kernel/mt76/Makefile index 0f832e44ca..7885825aaa 100644 --- a/package/kernel/mt76/Makefile +++ b/package/kernel/mt76/Makefile @@ -1,17 +1,16 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mt76 -PKG_VERSION:=2016-06-17 -PKG_RELEASE=1 +PKG_RELEASE=2 PKG_LICENSE:=GPLv2 PKG_LICENSE_FILES:= PKG_SOURCE_URL:=https://github.com/openwrt/mt76 PKG_SOURCE_PROTO:=git -PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) -PKG_SOURCE_VERSION:=f06ed811cda67ab2ed9932c3e87ba03229e75f4e -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz +PKG_SOURCE_DATE:=2017-02-03 +PKG_SOURCE_VERSION:=a5eaeb27d6a80c012ffc8b5bb5549983e446b4ef +PKG_MIRROR_HASH:=c526586aba890c5645320145219bd5932e39cfc2ea540d7674c9a58ab9a4a36a PKG_MAINTAINER:=Felix Fietkau PKG_BUILD_PARALLEL:=1 @@ -21,15 +20,44 @@ STAMP_CONFIGURED_DEPENDS := $(STAGING_DIR)/usr/include/mac80211-backport/backpor include $(INCLUDE_DIR)/kernel.mk include $(INCLUDE_DIR)/package.mk +define KernelPackage/mt76-default + SUBMENU:=Wireless Drivers + DEPENDS:= \ + +kmod-mac80211 @PCI_SUPPORT @!LINUX_3_18 \ + +@DRIVER_11AC_SUPPORT +@DRIVER_11N_SUPPORT +@DRIVER_11W_SUPPORT +endef + define KernelPackage/mt76 SUBMENU:=Wireless Drivers - TITLE:=MediaTek MT76x2/MT7603 wireless driver - DEPENDS:=+kmod-mac80211 +@DRIVER_11N_SUPPORT @PCI_SUPPORT @!LINUX_3_18 + TITLE:=MediaTek MT76x2/MT7603 wireless driver (metapackage) + DEPENDS:= \ + +kmod-mt76-core +kmod-mt76x2 +kmod-mt7603 +endef + +define KernelPackage/mt76-core + $(KernelPackage/mt76-default) + TITLE:=MediaTek MT76xx wireless driver + FILES:=\ + $(PKG_BUILD_DIR)/mt76.ko + AUTOLOAD:=$(call AutoLoad,50,mac80211 mt76) +endef + +define KernelPackage/mt76x2 + $(KernelPackage/mt76-default) + TITLE:=MediaTek MT76x2 wireless driver + DEPENDS+=+kmod-mt76-core + FILES:=\ + $(PKG_BUILD_DIR)/mt76x2e.ko + AUTOLOAD:=$(call AutoLoad,51,mt76x2e) +endef + +define KernelPackage/mt7603 + $(KernelPackage/mt76-default) + TITLE:=MediaTek MT7603 wireless driver + DEPENDS+=+kmod-mt76-core FILES:=\ - $(PKG_BUILD_DIR)/mt76.ko \ - $(PKG_BUILD_DIR)/mt76x2e.ko \ $(PKG_BUILD_DIR)/mt7603e.ko - AUTOLOAD:=$(call AutoLoad,50,mac80211 mt76 mt76x2e mt7603e) + AUTOLOAD:=$(call AutoLoad,51,mt7603e) endef NOSTDINC_FLAGS = \ @@ -54,18 +82,27 @@ define Build/Compile modules endef -define KernelPackage/mt76/install +define KernelPackage/mt76x2/install $(INSTALL_DIR) $(1)/lib/firmware cp \ - $(if $(CONFIG_TARGET_ramips_mt7628) || $(CONFIG_TARGET_ramips_mt7688), \ - $(PKG_BUILD_DIR)/firmware/mt7628_e1.bin \ - $(PKG_BUILD_DIR)/firmware/mt7628_e2.bin \ - ) \ - $(PKG_BUILD_DIR)/firmware/mt7603_e1.bin \ - $(PKG_BUILD_DIR)/firmware/mt7603_e2.bin \ $(PKG_BUILD_DIR)/firmware/mt7662_rom_patch.bin \ $(PKG_BUILD_DIR)/firmware/mt7662.bin \ $(1)/lib/firmware endef +define KernelPackage/mt7603/install + $(INSTALL_DIR) $(1)/lib/firmware + cp $(if $(CONFIG_TARGET_ramips_mt7628)$(CONFIG_TARGET_ramips_mt7688), \ + $(PKG_BUILD_DIR)/firmware/mt7628_e1.bin \ + $(PKG_BUILD_DIR)/firmware/mt7628_e2.bin \ + ,\ + $(PKG_BUILD_DIR)/firmware/mt7603_e1.bin \ + $(PKG_BUILD_DIR)/firmware/mt7603_e2.bin \ + ) \ + $(1)/lib/firmware +endef + +$(eval $(call KernelPackage,mt76-core)) +$(eval $(call KernelPackage,mt76x2)) +$(eval $(call KernelPackage,mt7603)) $(eval $(call KernelPackage,mt76))