[openwrt/openwrt] mt76: Add firmware package for MT7922
LEDE Commits
lede-commits at lists.infradead.org
Fri Dec 15 09:07:50 PST 2023
chunkeey pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/c9c35dca7add799a432d95d99821b2cb12430540
commit c9c35dca7add799a432d95d99821b2cb12430540
Author: Daniel Danzberger <dd at embedd.com>
AuthorDate: Fri Oct 13 13:50:49 2023 +0200
mt76: Add firmware package for MT7922
Adds the 2 required firmware files for MT7922 chips.
Signed-off-by: Daniel Danzberger <dd at embedd.com>
(cherry picked from commit 9eecf4905375777e2048177dbe4d83fee5da9ee1)
Signed-off-by: Anya Lin <hukk1996 at gmail.com>
---
package/kernel/mt76/Makefile | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/package/kernel/mt76/Makefile b/package/kernel/mt76/Makefile
index 42075daecd..c31631e6e5 100644
--- a/package/kernel/mt76/Makefile
+++ b/package/kernel/mt76/Makefile
@@ -262,6 +262,11 @@ define KernelPackage/mt7921-firmware
TITLE:=MediaTek MT7921 firmware
endef
+define KernelPackage/mt7922-firmware
+ $(KernelPackage/mt76-default)
+ TITLE:=MediaTek MT7922 firmware
+endef
+
define KernelPackage/mt792x-common
$(KernelPackage/mt76-default)
TITLE:=MediaTek MT792x wireless driver common code
@@ -553,6 +558,14 @@ define KernelPackage/mt7921-firmware/install
$(1)/lib/firmware/mediatek
endef
+define KernelPackage/mt7922-firmware/install
+ $(INSTALL_DIR) $(1)/lib/firmware/mediatek
+ cp \
+ $(PKG_BUILD_DIR)/firmware/WIFI_MT7922_patch_mcu_1_1_hdr.bin \
+ $(PKG_BUILD_DIR)/firmware/WIFI_RAM_CODE_MT7922_1.bin \
+ $(1)/lib/firmware/mediatek
+endef
+
define Package/mt76-test/install
mkdir -p $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/mt76-test $(1)/usr/sbin
@@ -586,6 +599,7 @@ $(eval $(call KernelPackage,mt7916-firmware))
$(eval $(call KernelPackage,mt7981-firmware))
$(eval $(call KernelPackage,mt7986-firmware))
$(eval $(call KernelPackage,mt7921-firmware))
+$(eval $(call KernelPackage,mt7922-firmware))
$(eval $(call KernelPackage,mt792x-common))
$(eval $(call KernelPackage,mt792x-usb))
$(eval $(call KernelPackage,mt7921-common))
More information about the lede-commits
mailing list