[openwrt/openwrt] mt76: Add firmware files into mt7925-firmware package

LEDE Commits lede-commits at lists.infradead.org
Sat Aug 24 05:51:50 PDT 2024


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/da502be941a7ee50cd7da0c8654b7c836ce63ab2

commit da502be941a7ee50cd7da0c8654b7c836ce63ab2
Author: Daniel Pawlik <pawlik.dan at gmail.com>
AuthorDate: Fri Aug 23 16:48:53 2024 +0200

    mt76: Add firmware files into mt7925-firmware package
    
    The firmware binaries were missing in kmod-mt7925-firmware package.
    
    Signed-off-by: Daniel Pawlik <pawlik.dan at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/16239
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 package/kernel/mt76/Makefile | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/package/kernel/mt76/Makefile b/package/kernel/mt76/Makefile
index 2501f37d30..27a52275d8 100644
--- a/package/kernel/mt76/Makefile
+++ b/package/kernel/mt76/Makefile
@@ -329,6 +329,12 @@ define KernelPackage/mt7996-firmware
   DEPENDS+=+kmod-mt7996e
 endef
 
+define KernelPackage/mt7925-firmware
+  $(KernelPackage/mt76-default)
+  TITLE:=MediaTek MT7925 firmware
+  DEPENDS+=+kmod-mt7925e
+endef
+
 define KernelPackage/mt7925-common
   $(KernelPackage/mt76-default)
   TITLE:=MediaTek MT7925 wireless driver common code
@@ -616,6 +622,14 @@ define KernelPackage/mt7922-firmware/install
 		$(1)/lib/firmware/mediatek
 endef
 
+define KernelPackage/mt7925-firmware/install
+        $(INSTALL_DIR) $(1)/lib/firmware/mediatek/mt7925
+	cp \
+		$(PKG_BUILD_DIR)/firmware/mt7925/WIFI_MT7925_PATCH_MCU_1_1_hdr.bin \
+		$(PKG_BUILD_DIR)/firmware/mt7925/WIFI_RAM_CODE_MT7925_1_1.bin \
+		$(1)/lib/firmware/mediatek/mt7925
+endef
+
 define KernelPackage/mt7996-firmware/install
 	$(INSTALL_DIR) $(1)/lib/firmware/mediatek/mt7996
 	cp \
@@ -666,6 +680,7 @@ $(eval $(call KernelPackage,mt7981-firmware))
 $(eval $(call KernelPackage,mt7986-firmware))
 $(eval $(call KernelPackage,mt7921-firmware))
 $(eval $(call KernelPackage,mt7922-firmware))
+$(eval $(call KernelPackage,mt7925-firmware))
 $(eval $(call KernelPackage,mt792x-common))
 $(eval $(call KernelPackage,mt792x-usb))
 $(eval $(call KernelPackage,mt7921-common))




More information about the lede-commits mailing list