2 # Copyright (C) 2024 Til Kaiser
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE_URL
:=https
://github.com
/Mellanox
/mstflint
15 PKG_MIRROR_HASH
:=4dca9f50bd20b16e58d10c58455b628e55c0158452e111fd3a64d98cab46ed1b
16 PKG_SOURCE_VERSION
:=17e9b849ba57cfac1b28240a25ece300a0f74a45
17 PKG_SOURCE_DATE
:=2024-01-15
19 PKG_MAINTAINER
:=Til Kaiser
<mail@tk154.de
>
20 PKG_LICENSE
:=GPL-2.0
-only
21 PKG_LICENSE_FILES
:=COPYING
27 include $(INCLUDE_DIR
)/package.mk
29 define Package
/mstflint
32 TITLE
:=Mellanox Firmware Burning and Diagnostics Tools
33 URL
:=https
://github.com
/Mellanox
/mstflint
34 DEPENDS
:=@
!(mips||mips64||mipsel
) \
35 +libcurl
+liblzma
+libopenssl
+libsqlite3 \
36 +libstdcpp
+libxml2
+python3-ctypes \
37 +python3-urllib
+python3-xml
+zlib
40 define Package
/mstflint
/description
41 This package contains a burning tool and diagnostic
42 tools for Mellanox manufactured HCA
/NIC cards.
46 This lib provides low level Flash
47 access through Mellanox HCAs.
48 mtcr lib
(implemented in mtcr.h file
)
49 This lib enables access to HCA hardware registers.
51 This utility dumps hardware registers from
52 Mellanox hardware for later analysis by Mellanox.
54 This utility dumps the on-card VPD.
56 This debug utility reads
/writes a to
/from
57 the device configuration register space.
59 This tool sets or queries non-volatile
60 configurable options for Mellanox HCAs.
62 Mellanox firmware update and query utility which scans
63 the system for available Mellanox devices
(only mst
64 PCI devices
) and performs the necessary firmware updates.
66 The mlxreg utility allows users to obtain information
67 regarding supported access registers
, such
as their
68 fields and attributes.
70 The mstfwtrace utility extracts and prints trace messages
71 generated by the firmware running on
5th generation
72 devices iRISCs. This tool supports secure FW flow only.
74 The mstlink tool is used to
check and debug
75 link status and issues related to them.
84 -I
$(STAGING_DIR
)/usr
/include/libxml2
86 define Package
/mstflint
/install
87 $(INSTALL_DIR
) $(1)/usr
/bin
88 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
90 $(INSTALL_DIR
) $(1)/usr
/lib
/mstflint
91 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/mstflint
$(1)/usr
/lib
/
93 $(INSTALL_DIR
) $(1)/usr
/share
/mstflint
94 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/mstflint
$(1)/usr
/share
/
97 $(eval
$(call BuildPackage
,mstflint
))