Skip to contentSkip to conversation

package/tbtools: new package

PATCH Applied Mika Westerberg 2 participants 2 messages May 11, 2024

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 package/tbtools: new package

This is a collection of tools for Linux Thunderbolt/USB4 development, debugging and validation.

---
Changes from v2:

- Added entry to DEVELOPERS
- Added comment about 32-bit build failure
- Added Config.in comment
- Added TBTOOLS_DEPENDENCIES to tbtools.mk
- Added dependency to glibc

The previous version of the patch can be found here:

https://lore.kernel.org/buildroot/[email protected]/

 DEVELOPERS                 |  3 +++
 package/Config.in          |  1 +
 package/tbtools/Config.in  | 18 ++++++++++++++++++
 package/tbtools/tbtools.mk | 13 +++++++++++++
 4 files changed, 35 insertions(+)
 create mode 100644 package/tbtools/Config.in
 create mode 100644 package/tbtools/tbtools.mk
DEVELOPERS +3 -0
index f6fc301373ad..c183e9f68067 100644
@@ -2255,6 +2255,9 @@ N:	Michel Stempin <[email protected]>
 F:	board/sipeed/licheepi_zero/
 F:	configs/sipeed_licheepi_zero_defconfig
 
+N:	Mika Westerberg <[email protected]>
+F:	package/tbtools/
+
 N:	Mike Frampton <[email protected]>
 F:	package/qcom-db410c-firmware/
 
package/Config.in +1 -0
index cdbf3577f8e1..e346917649a8 100644
@@ -157,6 +157,7 @@ menu "Debugging, profiling and benchmark"
 	source "package/stress-ng/Config.in"
 	source "package/sysdig/Config.in"
 	source "package/sysprof/Config.in"
+	source "package/tbtools/Config.in"
 	source "package/tcf-agent/Config.in"
 	source "package/trace-cmd/Config.in"
 	source "package/trinity/Config.in"
package/tbtools/Config.in new file +18 -0
new file mode 100644
index 000000000000..9c27bf0e30ee
@@ -0,0 +1,18 @@
+config BR2_PACKAGE_TBTOOLS
+	bool "tbtools"
+	depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
+	depends on BR2_TOOLCHAIN_USES_GLIBC
+	depends on BR2_PACKAGE_HAS_UDEV
+	# Fails to build on 32-bit systems
+	depends on BR2_ARCH_IS_64
+	select BR2_PACKAGE_HOST_RUSTC
+	help
+	  tbtools is a collection of tools for Linux Thunderbolt/USB4
+	  development, debugging and validation.
+
+	  https://github.com/intel/tbtools
+
+comment "tbtools needs udev /dev management w/ glibc toolchain"
+	depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
+	depends on BR2_ARCH_IS_64
+	depends on !BR2_PACKAGE_HAS_UDEV || !BR2_TOOLCHAIN_USES_GLIBC
package/tbtools/tbtools.mk new file +13 -0
new file mode 100644
index 000000000000..94340616db62
@@ -0,0 +1,13 @@
+################################################################################
+#
+# tbtools
+#
+################################################################################
+
+TBTOOLS_VERSION = v0.3.2
+TBTOOLS_SITE = $(call github,intel,tbtools,$(TBTOOLS_VERSION))
+TBTOOLS_LICENSE = MIT
+TBTOOLS_LICENSE_FILES = LICENSE
+TBTOOLS_DEPENDENCIES = udev
+
+$(eval $(cargo-package))

--
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#1 lore raw
Quoted 7 lines · On Sat, 11 May 2024 11:06:12 +0300 Mika Westerberg…

This is a collection of tools for Linux Thunderbolt/USB4 development, debugging and validation.

---
Changes from v2:

Applied to master, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot