From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 29 Sep 2021 17:13:15 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mVbGl-00060a-5V for lore@lore.pengutronix.de; Wed, 29 Sep 2021 17:13:15 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mVbGk-00066O-RE; Wed, 29 Sep 2021 17:13:14 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mVbGA-000669-IX; Wed, 29 Sep 2021 17:12:38 +0200 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mVbGA-0005Qw-1M; Wed, 29 Sep 2021 17:12:38 +0200 Received: from mol by dude03.red.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1mVbG9-00AyIP-Uc; Wed, 29 Sep 2021 17:12:38 +0200 Date: Wed, 29 Sep 2021 17:12:37 +0200 From: Michael Olbrich To: Michael Grzeschik Message-ID: <20210929151237.GL2560099@pengutronix.de> Mail-Followup-To: Michael Grzeschik , ptxdist@pengutronix.de References: <20210923133438.17528-1-m.grzeschik@pengutronix.de> <20210923133438.17528-2-m.grzeschik@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210923133438.17528-2-m.grzeschik@pengutronix.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [ptxdist] [PATCH v2 2/2] gt: add gadget-tool X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false On Thu, Sep 23, 2021 at 03:34:38PM +0200, Michael Grzeschik 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. > Falis to build here: '[...]/build-target/gt-31b135546d0d1733b5b7ca19f48748c06824d65a-build' [ 61%] Generating gt.1.gz /bin/sh: 1: a2x: not found make[2]: *** [manpages/CMakeFiles/manpage.dir/build.make:73: manpages/gt.1.gz] Error 127 make[2]: Leaving directory Maybe generating the man page can be disabled? Michael > Signed-off-by: Michael Grzeschik > --- > v2: - using github archive > - addded license from codefile > - added SUBDIR, since archive has different toplevel > - fixed md5sum for archive > - fixed permissions of gt.conf > > rules/gt.in | 11 ++++++++++ > rules/gt.make | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 70 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..63fa428ea > --- /dev/null > +++ b/rules/gt.make > @@ -0,0 +1,59 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2021 by Michael Grzeschik > +# > +# 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) > + > +# ---------------------------------------------------------------------------- > +# 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 ") > + @$(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 > -- > 2.30.2 > > > _______________________________________________ > ptxdist mailing list > ptxdist@pengutronix.de > To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de