From da502be941a7ee50cd7da0c8654b7c836ce63ab2 Mon Sep 17 00:00:00 2001 From: Daniel Pawlik Date: Fri, 23 Aug 2024 16:48:53 +0200 Subject: [PATCH] mt76: Add firmware files into mt7925-firmware package The firmware binaries were missing in kmod-mt7925-firmware package. Signed-off-by: Daniel Pawlik Link: https://github.com/openwrt/openwrt/pull/16239 Signed-off-by: Hauke Mehrtens --- 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)) -- 2.30.2