mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Michael Grzeschik <m.grzeschik@pengutronix.de>
Subject: Re: [ptxdist] [APPLIED] gt: add gadget-tool
Date: Wed, 20 Oct 2021 11:39:47 +0200	[thread overview]
Message-ID: <20211020093947.3933639-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20211005120856.2838-3-m.grzeschik@pengutronix.de>

Thanks, applied as b89acaca791144c3db6eeeb2dcbd9ade2ea4f0c3.

Michael

[sent from post-receive hook]

On Wed, 20 Oct 2021 11:39:46 +0200, Michael Grzeschik <m.grzeschik@pengutronix.de> wrote:
> 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 <m.grzeschik@pengutronix.de>
> Message-Id: <20211005120856.2838-3-m.grzeschik@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/gt.in b/rules/gt.in
> new file mode 100644
> index 000000000000..5084a554b098
> --- /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 000000000000..5fc40c2e247a
> --- /dev/null
> +++ b/rules/gt.make
> @@ -0,0 +1,60 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2021 by Michael Grzeschik <m.grzeschik@pengutronix.de>
> +#
> +# 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	:= 31b135546d0d1733b5b7ca19f48748c06824d65a
> +GT_MD5		:= 5ae9260049f5d2cd2ebeccef92e7888b
> +GT		:= gt-$(GT_VERSION)
> +GT_SUFFIX	:= tar.gz
> +GT_URL		:= https://github.com/linux-usb-gadgets/gt/archive/$(GT_VERSION).$(GT_SUFFIX)
> +GT_SOURCE	:= $(SRCDIR)/$(GT).$(GT_SUFFIX)
> +GT_DIR		:= $(BUILDDIR)/$(GT)
> +GT_SUBDIR	:= source
> +GT_LICENSE	:= Apache-2.0
> +GT_LICENSE_FILES	:= \
> +	file://source/main.c;startline=2;endline=14;md5=239ab3ef885c745f3896a83f17482d6d \
> +	file://LICENSE;md5=785f417ec07d653f268e6eb621218d5d
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +GT_CONF_TOOL	:= cmake
> +GT_CONF_OPT	:= \
> +	$(CROSS_CMAKE_USR) \
> +	-DENABLE_MANUAL_PAGE:BOOL=OFF
> +
> +# ----------------------------------------------------------------------------
> +# 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 <m.grzeschik@pengutronix.de>")
> +	@$(call install_fixup, gt, DESCRIPTION, missing)
> +
> +	@$(call install_copy, gt, 0, 0, 0755, -, /usr/bin/gt)
> +	@$(call install_copy, gt, 0, 0, 0644, \
> +	        $(GT_PKGDIR)/usr/etc/gt/gt.conf, /etc/gt/gt.conf)
> +
> +	@$(call install_finish, gt)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


  reply	other threads:[~2021-10-20  9:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-05 12:08 [ptxdist] [PATCH 1/3] libusbgx: fix show-udcs Michael Grzeschik
2021-10-05 12:08 ` [ptxdist] [PATCH 2/3] libusbgx: fixes libconfig and disabling documentation Michael Grzeschik
2021-10-20  9:39   ` [ptxdist] [APPLIED] " Michael Olbrich
2021-10-05 12:08 ` [ptxdist] [PATCH v2 3/3] gt: add gadget-tool Michael Grzeschik
2021-10-20  9:39   ` Michael Olbrich [this message]
2021-10-20  9:39 ` [ptxdist] [APPLIED] libusbgx: fix show-udcs Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211020093947.3933639-1-m.olbrich@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=m.grzeschik@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox