[openwrt/openwrt] linux-firmware: add firmware for all Mellanox Spectrum Switches

LEDE Commits lede-commits at lists.infradead.org
Thu Aug 29 11:41:09 PDT 2024


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

commit ababc2d0a7a4c6b07f096f3e9f1d5546e4a64a26
Author: Til Kaiser <mail at tk154.de>
AuthorDate: Sun Apr 28 14:24:11 2024 +0200

    linux-firmware: add firmware for all Mellanox Spectrum Switches
    
    This commit adds the currently missing Mellanox
    Spectrum-2, Spectrum-3, and Spectrum-4 firmware files.
    
    Signed-off-by: Til Kaiser <mail at tk154.de>
    Link: https://github.com/openwrt/openwrt/pull/15362
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 package/firmware/linux-firmware/mellanox.mk | 30 +++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/package/firmware/linux-firmware/mellanox.mk b/package/firmware/linux-firmware/mellanox.mk
index 039c7deb10..949085f2a8 100644
--- a/package/firmware/linux-firmware/mellanox.mk
+++ b/package/firmware/linux-firmware/mellanox.mk
@@ -7,3 +7,33 @@ define Package/mlxsw_spectrum-firmware/install
 endef
 
 $(eval $(call BuildPackage,mlxsw_spectrum-firmware))
+
+Package/mlxsw_spectrum2-firmware = $(call Package/firmware-default,Mellanox Spectrum-2 firmware)
+define Package/mlxsw_spectrum2-firmware/install
+	$(INSTALL_DIR) $(1)/lib/firmware/mellanox
+	$(CP) \
+		$(PKG_BUILD_DIR)/mellanox/mlxsw_spectrum2-*.mfa2 \
+		$(1)/lib/firmware/mellanox
+endef
+
+$(eval $(call BuildPackage,mlxsw_spectrum2-firmware))
+
+Package/mlxsw_spectrum3-firmware = $(call Package/firmware-default,Mellanox Spectrum-3 firmware)
+define Package/mlxsw_spectrum3-firmware/install
+	$(INSTALL_DIR) $(1)/lib/firmware/mellanox
+	$(CP) \
+		$(PKG_BUILD_DIR)/mellanox/mlxsw_spectrum3-*.mfa2 \
+		$(1)/lib/firmware/mellanox
+endef
+
+$(eval $(call BuildPackage,mlxsw_spectrum3-firmware))
+
+Package/mlxsw_spectrum4-firmware = $(call Package/firmware-default,Mellanox Spectrum-4 firmware)
+define Package/mlxsw_spectrum4-firmware/install
+	$(INSTALL_DIR) $(1)/lib/firmware/mellanox
+	$(CP) \
+		$(PKG_BUILD_DIR)/mellanox/mlxsw_spectrum4-*.mfa2 \
+		$(1)/lib/firmware/mellanox
+endef
+
+$(eval $(call BuildPackage,mlxsw_spectrum4-firmware))




More information about the lede-commits mailing list