mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 1/3] libusbgx: fix show-udcs
@ 2021-10-05 12:08 Michael Grzeschik
  2021-10-05 12:08 ` [ptxdist] [PATCH 2/3] libusbgx: fixes libconfig and disabling documentation Michael Grzeschik
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Michael Grzeschik @ 2021-10-05 12:08 UTC (permalink / raw)
  To: ptxdist

Enabling SHOW_UDCS was installing show-gadgets instead of
show-udcs. This patch fixes that.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
---
 rules/libusbgx.make | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rules/libusbgx.make b/rules/libusbgx.make
index 724d1a3d8..d2f31f52e 100644
--- a/rules/libusbgx.make
+++ b/rules/libusbgx.make
@@ -66,7 +66,7 @@ ifdef PTXCONF_SHOW_GADGETS
 endif
 
 ifdef PTXCONF_SHOW_UDCS
-	@$(call install_copy, libusbgx, 0, 0, 0755, -, /usr/bin/show-gadgets)
+	@$(call install_copy, libusbgx, 0, 0, 0755, -, /usr/bin/show-udcs)
 endif
 
 ifdef PTXCONF_GADGET_VID_PID_REMOVE
-- 
2.30.2


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ptxdist] [PATCH 2/3] libusbgx: fixes libconfig and disabling documentation
  2021-10-05 12:08 [ptxdist] [PATCH 1/3] libusbgx: fix show-udcs Michael Grzeschik
@ 2021-10-05 12:08 ` 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 ` [ptxdist] [APPLIED] libusbgx: fix show-udcs Michael Olbrich
  2 siblings, 1 reply; 6+ messages in thread
From: Michael Grzeschik @ 2021-10-05 12:08 UTC (permalink / raw)
  To: ptxdist

- fixed ptx/wow vs. ptx/wwo for libconfig
- while at it, disable documentation build

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
---
 rules/libusbgx.make | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/rules/libusbgx.make b/rules/libusbgx.make
index d2f31f52e..9ff06f83b 100644
--- a/rules/libusbgx.make
+++ b/rules/libusbgx.make
@@ -42,9 +42,10 @@ LIBUSBGX_CONF_ENV	:= $(CROSS_ENV)
 LIBUSBGX_CONF_TOOL	:= autoconf
 LIBUSBGX_CONF_OPT	:= \
 	$(CROSS_AUTOCONF_USR) \
-	--$(call ptx/wow, PTXCONF_LIBUSBGX_SCHEMES)-libconfig \
+	--$(call ptx/wwo, PTXCONF_LIBUSBGX_SCHEMES)-libconfig \
 	--enable-examples \
-	--$(call ptx/endis, PTXCONF_LIBUSBGX_SCHEMES)-gadget-schemes
+	--$(call ptx/endis, PTXCONF_LIBUSBGX_SCHEMES)-gadget-schemes \
+	--disable-doxygen-doc
 
 # ----------------------------------------------------------------------------
 # Target-Install
-- 
2.30.2


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ptxdist] [PATCH v2 3/3] gt: add gadget-tool
  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-05 12:08 ` Michael Grzeschik
  2021-10-20  9:39   ` [ptxdist] [APPLIED] " Michael Olbrich
  2021-10-20  9:39 ` [ptxdist] [APPLIED] libusbgx: fix show-udcs Michael Olbrich
  2 siblings, 1 reply; 6+ messages in thread
From: Michael Grzeschik @ 2021-10-05 12:08 UTC (permalink / raw)
  To: ptxdist

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>
---
v2: - disabled manpages build

 rules/gt.in   | 11 ++++++++++
 rules/gt.make | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 71 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..5fc40c2e2
--- /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
-- 
2.30.2


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ptxdist] [APPLIED] libusbgx: fix show-udcs
  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-05 12:08 ` [ptxdist] [PATCH v2 3/3] gt: add gadget-tool Michael Grzeschik
@ 2021-10-20  9:39 ` Michael Olbrich
  2 siblings, 0 replies; 6+ messages in thread
From: Michael Olbrich @ 2021-10-20  9:39 UTC (permalink / raw)
  To: ptxdist; +Cc: Michael Grzeschik

Thanks, applied as 1fd3db0604fc7855f742a58ca29a60ffc66836b5.

Michael

[sent from post-receive hook]

On Wed, 20 Oct 2021 11:39:44 +0200, Michael Grzeschik <m.grzeschik@pengutronix.de> wrote:
> Enabling SHOW_UDCS was installing show-gadgets instead of
> show-udcs. This patch fixes that.
> 
> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
> Message-Id: <20211005120856.2838-1-m.grzeschik@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/libusbgx.make b/rules/libusbgx.make
> index 724d1a3d8fe4..d2f31f52e94b 100644
> --- a/rules/libusbgx.make
> +++ b/rules/libusbgx.make
> @@ -66,7 +66,7 @@ ifdef PTXCONF_SHOW_GADGETS
>  endif
>  
>  ifdef PTXCONF_SHOW_UDCS
> -	@$(call install_copy, libusbgx, 0, 0, 0755, -, /usr/bin/show-gadgets)
> +	@$(call install_copy, libusbgx, 0, 0, 0755, -, /usr/bin/show-udcs)
>  endif
>  
>  ifdef PTXCONF_GADGET_VID_PID_REMOVE

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ptxdist] [APPLIED] libusbgx: fixes libconfig and disabling documentation
  2021-10-05 12:08 ` [ptxdist] [PATCH 2/3] libusbgx: fixes libconfig and disabling documentation Michael Grzeschik
@ 2021-10-20  9:39   ` Michael Olbrich
  0 siblings, 0 replies; 6+ messages in thread
From: Michael Olbrich @ 2021-10-20  9:39 UTC (permalink / raw)
  To: ptxdist; +Cc: Michael Grzeschik

Thanks, applied as a160e2ca6ef9401d10797e3d43ef658cfdcb5dd1.

Michael

[sent from post-receive hook]

On Wed, 20 Oct 2021 11:39:45 +0200, Michael Grzeschik <m.grzeschik@pengutronix.de> wrote:
> - fixed ptx/wow vs. ptx/wwo for libconfig
> - while at it, disable documentation build
> 
> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
> Message-Id: <20211005120856.2838-2-m.grzeschik@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/libusbgx.make b/rules/libusbgx.make
> index d2f31f52e94b..9ff06f83bf66 100644
> --- a/rules/libusbgx.make
> +++ b/rules/libusbgx.make
> @@ -42,9 +42,10 @@ LIBUSBGX_CONF_ENV	:= $(CROSS_ENV)
>  LIBUSBGX_CONF_TOOL	:= autoconf
>  LIBUSBGX_CONF_OPT	:= \
>  	$(CROSS_AUTOCONF_USR) \
> -	--$(call ptx/wow, PTXCONF_LIBUSBGX_SCHEMES)-libconfig \
> +	--$(call ptx/wwo, PTXCONF_LIBUSBGX_SCHEMES)-libconfig \
>  	--enable-examples \
> -	--$(call ptx/endis, PTXCONF_LIBUSBGX_SCHEMES)-gadget-schemes
> +	--$(call ptx/endis, PTXCONF_LIBUSBGX_SCHEMES)-gadget-schemes \
> +	--disable-doxygen-doc
>  
>  # ----------------------------------------------------------------------------
>  # Target-Install

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ptxdist] [APPLIED] gt: add gadget-tool
  2021-10-05 12:08 ` [ptxdist] [PATCH v2 3/3] gt: add gadget-tool Michael Grzeschik
@ 2021-10-20  9:39   ` Michael Olbrich
  0 siblings, 0 replies; 6+ messages in thread
From: Michael Olbrich @ 2021-10-20  9:39 UTC (permalink / raw)
  To: ptxdist; +Cc: Michael Grzeschik

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-10-20  9:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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   ` [ptxdist] [APPLIED] " Michael Olbrich
2021-10-20  9:39 ` [ptxdist] [APPLIED] libusbgx: fix show-udcs Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox