PKG_SOURCE_URL:=https://github.com/openwrt/mt76
PKG_SOURCE_PROTO:=git
-PKG_SOURCE_DATE:=2024-09-05
-PKG_SOURCE_VERSION:=65cc3daf2a332cc658e9f7438cdadde4392e672e
-PKG_MIRROR_HASH:=c29c4f883051a6360119156a03e010ac11573011b23d9e873f83c720600970e7
+PKG_SOURCE_DATE:=2024-09-29
+PKG_SOURCE_VERSION:=680bc70f161fde0f167e2ae50c771be4775eb50a
+PKG_MIRROR_HASH:=bcdb95e40cfceba56a565ad6b6d9f92a122e7230d0f7f950b3d39e4280723cca
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
PKG_USE_NINJA:=0
AUTOLOAD:=$(call AutoProbe,mt7996e)
endef
+define KernelPackage/mt7992-firmware
+ $(KernelPackage/mt76-default)
+ TITLE:=MediaTek MT7992 firmware
+ DEPENDS+=+kmod-mt7996
+endef
+
+define KernelPackage/mt7992-23-firmware
+ $(KernelPackage/mt76-default)
+ TITLE:=MediaTek MT7996 firmware (2+3 antenna variant)
+ DEPENDS+=+kmod-mt7996e
+endef
+
+define KernelPackage/mt7996-firmware-common
+ $(KernelPackage/mt76-default)
+ TITLE:=MediaTek MT7996 firmware (common files)
+ HIDDEN:=1
+endef
+
define KernelPackage/mt7996-firmware
$(KernelPackage/mt76-default)
TITLE:=MediaTek MT7996 firmware
- DEPENDS+=+kmod-mt7996e
+ DEPENDS+=+kmod-mt7996e +kmod-mt7996-firmware-common
+endef
+
+define KernelPackage/mt7996-233-firmware
+ $(KernelPackage/mt76-default)
+ TITLE:=MediaTek MT7996 firmware (2+3+3 antenna variant)
+ DEPENDS+=+kmod-mt7996e +kmod-mt7996-firmware-common
endef
define KernelPackage/mt7925-firmware
$(1)/lib/firmware/mediatek/mt7925
endef
-define KernelPackage/mt7996-firmware/install
+define KernelPackage/mt7992-firmware/install
+ $(INSTALL_DIR) $(1)/lib/firmware/mediatek/mt7996
+ cp \
+ $(PKG_BUILD_DIR)/firmware/mt7996/mt7992_dsp.bin \
+ $(PKG_BUILD_DIR)/firmware/mt7996/mt7992_eeprom.bin \
+ $(PKG_BUILD_DIR)/firmware/mt7996/mt7992_rom_patch.bin \
+ $(PKG_BUILD_DIR)/firmware/mt7996/mt7992_wa.bin \
+ $(PKG_BUILD_DIR)/firmware/mt7996/mt7992_wm.bin \
+ $(1)/lib/firmware/mediatek/mt7996
+endef
+
+define KernelPackage/mt7992-23-firmware/install
+ $(INSTALL_DIR) $(1)/lib/firmware/mediatek/mt7996
+ cp \
+ $(PKG_BUILD_DIR)/firmware/mt7996/mt7992_dsp_23.bin \
+ $(PKG_BUILD_DIR)/firmware/mt7996/mt7992_eeprom_23.bin \
+ $(PKG_BUILD_DIR)/firmware/mt7996/mt7992_eeprom_23.bin \
+ $(PKG_BUILD_DIR)/firmware/mt7996/mt7992_rom_patch_23.bin \
+ $(PKG_BUILD_DIR)/firmware/mt7996/mt7992_wa_23.bin \
+ $(PKG_BUILD_DIR)/firmware/mt7996/mt7992_wm_23.bin \
+ $(1)/lib/firmware/mediatek/mt7996
+endef
+
+define KernelPackage/mt7996-firmware-common/install
$(INSTALL_DIR) $(1)/lib/firmware/mediatek/mt7996
cp \
$(PKG_BUILD_DIR)/firmware/mt7996/mt7996_dsp.bin \
+ $(1)/lib/firmware/mediatek/mt7996
+endef
+
+define KernelPackage/mt7996-firmware/install
+ $(INSTALL_DIR) $(1)/lib/firmware/mediatek/mt7996
+ cp \
$(PKG_BUILD_DIR)/firmware/mt7996/mt7996_eeprom.bin \
+ $(PKG_BUILD_DIR)/firmware/mt7996/mt7996_eeprom_2i5i6i.bin \
$(PKG_BUILD_DIR)/firmware/mt7996/mt7996_rom_patch.bin \
$(PKG_BUILD_DIR)/firmware/mt7996/mt7996_wa.bin \
$(PKG_BUILD_DIR)/firmware/mt7996/mt7996_wm.bin \
$(1)/lib/firmware/mediatek/mt7996
endef
+define KernelPackage/mt7996-233-firmware/install
+ $(INSTALL_DIR) $(1)/lib/firmware/mediatek/mt7996
+ cp \
+ $(PKG_BUILD_DIR)/firmware/mt7996/mt7996_eeprom_233.bin \
+ $(PKG_BUILD_DIR)/firmware/mt7996/mt7996_eeprom_233_2i5i6i.bin \
+ $(PKG_BUILD_DIR)/firmware/mt7996/mt7996_rom_patch_233.bin \
+ $(PKG_BUILD_DIR)/firmware/mt7996/mt7996_wa_233.bin \
+ $(PKG_BUILD_DIR)/firmware/mt7996/mt7996_wm_233.bin \
+ $(1)/lib/firmware/mediatek/mt7996
+endef
+
define Package/mt76-test/install
mkdir -p $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/mt76-test $(1)/usr/sbin
$(eval $(call KernelPackage,mt7925u))
$(eval $(call KernelPackage,mt7925e))
$(eval $(call KernelPackage,mt7996e))
+$(eval $(call KernelPackage,mt7992-firmware))
+$(eval $(call KernelPackage,mt7992-23-firmware))
+$(eval $(call KernelPackage,mt7996-firmware-common))
$(eval $(call KernelPackage,mt7996-firmware))
+$(eval $(call KernelPackage,mt7996-233-firmware))
$(eval $(call KernelPackage,mt76))
$(eval $(call BuildPackage,mt76-test))