[][Update mt76 package]

[Description]
Add for patching internal firmware and mt76 config

[Release-log]
N/A

Change-Id: I126f7f186975f762a8ac570c03aed632afeadbbd
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/4905054
diff --git a/openwrt_patches-21.02/400-mt76-add-makefile.patch b/openwrt_patches-21.02/400-mt76-add-makefile.patch
new file mode 100644
index 0000000..ef99cd6
--- /dev/null
+++ b/openwrt_patches-21.02/400-mt76-add-makefile.patch
@@ -0,0 +1,30 @@
+--- a/package/kernel/mt76/Makefile
++++ b/package/kernel/mt76/Makefile
+@@ -249,6 +249,11 @@ ifdef CONFIG_PACKAGE_MAC80211_MESH
+   NOSTDINC_FLAGS += -DCONFIG_MAC80211_MESH
+ endif
+ 
++ifdef CONFIG_PACKAGE_MAC80211_DEBUGFS
++  NOSTDINC_FLAGS += -DCONFIG_MAC80211_DEBUGFS
++  PKG_MAKE_FLAGS += CONFIG_MAC80211_DEBUGFS=y
++endif
++
+ ifdef CONFIG_PACKAGE_CFG80211_TESTMODE
+   NOSTDINC_FLAGS += -DCONFIG_NL80211_TESTMODE
+   PKG_MAKE_FLAGS += CONFIG_NL80211_TESTMODE=y
+@@ -401,9 +406,9 @@ endef
+ define KernelPackage/mt7915e/install
+ 	$(INSTALL_DIR) $(1)/lib/firmware/mediatek
+ 	cp \
+-		$(PKG_BUILD_DIR)/firmware/mt7915_wa.bin \
+-		$(PKG_BUILD_DIR)/firmware/mt7915_wm.bin \
+-		$(PKG_BUILD_DIR)/firmware/mt7915_rom_patch.bin \
++		./files/firmware/mt7915_wa.bin \
++		./files/firmware/mt7915_wm.bin \
++		./files/firmware/mt7915_rom_patch.bin \
+ 		$(1)/lib/firmware/mediatek
+ endef
+ 
+-- 
+2.29.2
+
diff --git a/openwrt_patches/400-mt76-add-makefile-master.patch b/openwrt_patches/400-mt76-add-makefile-master.patch
new file mode 100644
index 0000000..1b96cea
--- /dev/null
+++ b/openwrt_patches/400-mt76-add-makefile-master.patch
@@ -0,0 +1,30 @@
+--- a/package/kernel/mt76/Makefile
++++ b/package/kernel/mt76/Makefile
+@@ -250,6 +250,11 @@ ifdef CONFIG_PACKAGE_MAC80211_MESH
+   NOSTDINC_FLAGS += -DCONFIG_MAC80211_MESH
+ endif
+ 
++ifdef CONFIG_PACKAGE_MAC80211_DEBUGFS
++  NOSTDINC_FLAGS += -DCONFIG_MAC80211_DEBUGFS
++  PKG_MAKE_FLAGS += CONFIG_MAC80211_DEBUGFS=y
++endif
++
+ ifdef CONFIG_PACKAGE_CFG80211_TESTMODE
+   NOSTDINC_FLAGS += -DCONFIG_NL80211_TESTMODE
+   PKG_MAKE_FLAGS += CONFIG_NL80211_TESTMODE=y
+@@ -402,9 +407,9 @@ endef
+ define KernelPackage/mt7915e/install
+ 	$(INSTALL_DIR) $(1)/lib/firmware/mediatek
+ 	cp \
+-		$(PKG_BUILD_DIR)/firmware/mt7915_wa.bin \
+-		$(PKG_BUILD_DIR)/firmware/mt7915_wm.bin \
+-		$(PKG_BUILD_DIR)/firmware/mt7915_rom_patch.bin \
++		./files/firmware/mt7915_wa.bin \
++		./files/firmware/mt7915_wm.bin \
++		./files/firmware/mt7915_rom_patch.bin \
+ 		$(1)/lib/firmware/mediatek
+ endef
+ 
+-- 
+2.29.2
+