treewide: exclude mips64
[feed/packages.git] / utils / mstflint / Makefile
1 #
2 # Copyright (C) 2024 Til Kaiser
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=mstflint
11 PKG_RELEASE:=1
12
13 PKG_SOURCE_PROTO:=git
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
18
19 PKG_MAINTAINER:=Til Kaiser <mail@tk154.de>
20 PKG_LICENSE:=GPL-2.0-only
21 PKG_LICENSE_FILES:=COPYING
22
23 PKG_FIXUP:=autoreconf
24 PKG_BUILD_PARALLEL:=1
25 PKG_INSTALL:=1
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/mstflint
30 SECTION:=Utilities
31 CATEGORY:=Utilities
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
38 endef
39
40 define Package/mstflint/description
41 This package contains a burning tool and diagnostic
42 tools for Mellanox manufactured HCA/NIC cards.
43
44 Package Contents:
45 mflash lib
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.
50 mstregdump
51 This utility dumps hardware registers from
52 Mellanox hardware for later analysis by Mellanox.
53 mstvpd
54 This utility dumps the on-card VPD.
55 mstmcra
56 This debug utility reads/writes a to/from
57 the device configuration register space.
58 mstconfig
59 This tool sets or queries non-volatile
60 configurable options for Mellanox HCAs.
61 mstfwmanager
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.
65 mstreg
66 The mlxreg utility allows users to obtain information
67 regarding supported access registers, such as their
68 fields and attributes.
69 mstfwtrace
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.
73 mstlink
74 The mstlink tool is used to check and debug
75 link status and issues related to them.
76 endef
77
78 CONFIGURE_ARGS += \
79 --enable-fw-mgr \
80 --disable-inband
81
82 TARGET_CFLAGS += \
83 -D_GNU_SOURCE \
84 -I$(STAGING_DIR)/usr/include/libxml2
85
86 define Package/mstflint/install
87 $(INSTALL_DIR) $(1)/usr/bin
88 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
89
90 $(INSTALL_DIR) $(1)/usr/lib/mstflint
91 $(CP) $(PKG_INSTALL_DIR)/usr/lib/mstflint $(1)/usr/lib/
92
93 $(INSTALL_DIR) $(1)/usr/share/mstflint
94 $(CP) $(PKG_INSTALL_DIR)/usr/share/mstflint $(1)/usr/share/
95 endef
96
97 $(eval $(call BuildPackage,mstflint))