Gadget-tool is a tool to setup configfs gadget device descriptions
via a tree based declarative scheme format. This makes poking around
in configfs with several shell commands obsolete. It depends on libusbgx
and libconfig.

Signed-off-by: Michael Grzeschik <[email protected]>
---
 rules/gt.in   | 11 ++++++++++
 rules/gt.make | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)
 create mode 100644 rules/gt.in
 create mode 100644 rules/gt.make

diff --git a/rules/gt.in b/rules/gt.in
new file mode 100644
index 000000000..5084a554b
--- /dev/null
+++ b/rules/gt.in
@@ -0,0 +1,11 @@
+## SECTION=shell_and_console
+
+config GT
+       tristate
+       select HOST_CMAKE
+       select LIBUSBGX
+       select LIBUSBGX_SCHEMES
+       select LIBCONFIG
+       prompt "gadget-tool (gt)"
+       help
+         Gadget-tool - Linux command line tool for setting USB gadget using 
configFS
diff --git a/rules/gt.make b/rules/gt.make
new file mode 100644
index 000000000..d94e42ca8
--- /dev/null
+++ b/rules/gt.make
@@ -0,0 +1,56 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Michael Grzeschik <[email protected]>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_GT) += gt
+
+#
+# Paths and names
+#
+GT_VERSION     := 31b13554
+GT_MD5         := 083a1e9f8c55812c0ef148a8ab0af862
+GT             := gt-$(GT_VERSION)
+GT_SUFFIX      := tar.bz2
+GT_URL         := https://github.com/linux-usb-gadgets/gt.git;tag=$(GT_VERSION)
+GT_SOURCE      := $(SRCDIR)/$(GT).$(GT_SUFFIX)
+GT_DIR         := $(BUILDDIR)/$(GT)/source
+GT_LICENSE     := Apache-2.0
+GT_LICENSE_FILES       := \
+       file://../LICENSE;md5=785f417ec07d653f268e6eb621218d5d
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+GT_CONF_TOOL   := cmake
+GT_CONF_OPT    := \
+       $(CROSS_CMAKE_USR)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/gt.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init, gt)
+       @$(call install_fixup, gt, PRIORITY, optional)
+       @$(call install_fixup, gt, SECTION, base)
+       @$(call install_fixup, gt, AUTHOR, "Michael Grzeschik 
<[email protected]>")
+       @$(call install_fixup, gt, DESCRIPTION, missing)
+
+       @$(call install_copy, gt, 0, 0, 0755, -, /usr/bin/gt)
+       @$(call install_copy, gt, 0, 0, 0755, $(GT_PKGDIR)/usr/etc/gt/gt.conf, 
/etc/gt/gt.conf)
+
+       @$(call install_finish, gt)
+
+       @$(call touch)
+
+# vim: syntax=make
-- 
2.30.2


_______________________________________________
ptxdist mailing list
[email protected]
To unsubscribe, send a mail with subject "unsubscribe" to 
[email protected]

Reply via email to