aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/kernel/mt76/Makefile31
1 files changed, 28 insertions, 3 deletions
diff --git a/package/kernel/mt76/Makefile b/package/kernel/mt76/Makefile
index 5238b4c73c..29f64f4c8e 100644
--- a/package/kernel/mt76/Makefile
+++ b/package/kernel/mt76/Makefile
@@ -8,9 +8,9 @@ PKG_LICENSE_FILES:=
PKG_SOURCE_URL:=https://github.com/openwrt/mt76
PKG_SOURCE_PROTO:=git
-PKG_SOURCE_DATE:=2018-10-05
-PKG_SOURCE_VERSION:=d533f1351834ba2899897b090aa56a5f5b922bd7
-PKG_MIRROR_HASH:=27e9c4cf876ad26a6f854d2b00d7e3b100980e820444f13986bf66f3f539eed3
+PKG_SOURCE_DATE:=2018-10-16
+PKG_SOURCE_VERSION:=9b844dababa4538363ce9ef0c0ff96e668b07628
+PKG_MIRROR_HASH:=cd928823042cfa8104b7f1950d6cd25097b604b8ac634e5abca19a9ea17035a3
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
PKG_BUILD_PARALLEL:=1
@@ -85,6 +85,15 @@ define KernelPackage/mt76x0-common
FILES:=$(PKG_BUILD_DIR)/mt76x0/mt76x0-common.ko
endef
+define KernelPackage/mt76x0e
+ $(KernelPackage/mt76-default)
+ TITLE:=MediaTek MT76x0E wireless driver
+ DEPENDS+=+kmod-mt76x0-common
+ FILES:=\
+ $(PKG_BUILD_DIR)/mt76x0/mt76x0e.ko
+ AUTOLOAD:=$(call AutoProbe,mt76x0e)
+endef
+
define KernelPackage/mt76x0u
$(KernelPackage/mt76-default)
TITLE:=MediaTek MT76x0U wireless driver
@@ -154,6 +163,9 @@ endif
ifdef CONFIG_PACKAGE_kmod-mt76x0-common
PKG_MAKE_FLAGS += CONFIG_MT76x0_COMMON=m
endif
+ifdef CONFIG_PACKAGE_kmod-mt76x0e
+ PKG_MAKE_FLAGS += CONFIG_MT76x0E=m
+endif
ifdef CONFIG_PACKAGE_kmod-mt76x0u
PKG_MAKE_FLAGS += CONFIG_MT76x0U=m
endif
@@ -183,6 +195,13 @@ define Package/kmod-mt76/install
true
endef
+define KernelPackage/mt76x0-common/install
+ $(INSTALL_DIR) $(1)/lib/firmware/mediatek
+ cp \
+ $(PKG_BUILD_DIR)/firmware/mt7610e.bin \
+ $(1)/lib/firmware/mediatek
+endef
+
define KernelPackage/mt76x2-common/install
$(INSTALL_DIR) $(1)/lib/firmware
cp \
@@ -191,6 +210,11 @@ define KernelPackage/mt76x2-common/install
$(1)/lib/firmware
endef
+define KernelPackage/mt76x0u/install
+ $(INSTALL_DIR) $(1)/lib/firmware/mediatek
+ ln -sf mt7610e.bin $(1)/lib/firmware/mediatek/mt7610u.bin
+endef
+
define KernelPackage/mt76x2u/install
$(INSTALL_DIR) $(1)/lib/firmware/mediatek
ln -sf ../mt7662.bin $(1)/lib/firmware/mediatek/mt7662u.bin
@@ -214,6 +238,7 @@ $(eval $(call KernelPackage,mt76-usb))
$(eval $(call KernelPackage,mt76x02-usb))
$(eval $(call KernelPackage,mt76x02-common))
$(eval $(call KernelPackage,mt76x0-common))
+$(eval $(call KernelPackage,mt76x0e))
$(eval $(call KernelPackage,mt76x0u))
$(eval $(call KernelPackage,mt76x2-common))
$(eval $(call KernelPackage,mt76x2u))