From: Daniel Golle Date: Mon, 8 Jan 2024 21:08:13 +0000 (+0000) Subject: firmware: package firmware for built-in 2.5G PHY on MT7988 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1e58ce7652c38580ef719cc8a8a795b87c531bcc;p=openwrt%2Fstaging%2Fthess.git firmware: package firmware for built-in 2.5G PHY on MT7988 Firmware for the built-in 2.5G Ethernet PHY of the MediaTek MT7988 SoC is now part of linux-firmware, so we can package it. Only a single file is needed with recent driver. Signed-off-by: Daniel Golle --- diff --git a/package/firmware/linux-firmware/mediatek.mk b/package/firmware/linux-firmware/mediatek.mk index a0eccb8f4d..bf6bef22a6 100644 --- a/package/firmware/linux-firmware/mediatek.mk +++ b/package/firmware/linux-firmware/mediatek.mk @@ -87,3 +87,12 @@ define Package/mt7986-wo-firmware/install $(1)/lib/firmware/mediatek endef $(eval $(call BuildPackage,mt7986-wo-firmware)) + +Package/mt7988-2p5g-phy-firmware = $(call Package/firmware-default,MT7988 built-in 2.5G Ethernet PHY firmware) +define Package/mt7988-2p5g-phy-firmware/install + $(INSTALL_DIR) $(1)/lib/firmware/mediatek/mt7988 + $(INSTALL_DATA) \ + $(PKG_BUILD_DIR)/mediatek/mt7988/i2p5ge-phy-pmb.bin \ + $(1)/lib/firmware/mediatek/mt7988 +endef +$(eval $(call BuildPackage,mt7988-2p5g-phy-firmware)) diff --git a/target/linux/mediatek/image/filogic.mk b/target/linux/mediatek/image/filogic.mk index 06777bc46e..8be0f07d06 100644 --- a/target/linux/mediatek/image/filogic.mk +++ b/target/linux/mediatek/image/filogic.mk @@ -661,7 +661,7 @@ define Device/mediatek_mt7988a-rfb DEVICE_DTS_DIR := $(DTS_DIR)/ DEVICE_DTC_FLAGS := --pad 4096 DEVICE_DTS_LOADADDR := 0x45f00000 - DEVICE_PACKAGES := kmod-sfp + DEVICE_PACKAGES := mt7988-2p5g-phy-firmware kmod-sfp KERNEL_LOADADDR := 0x46000000 KERNEL := kernel-bin | gzip KERNEL_INITRAMFS := kernel-bin | lzma | \