mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] uhubctl: new package
@ 2021-07-23  8:06 Lars Pedersen
  2021-07-27  6:21 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Lars Pedersen @ 2021-07-23  8:06 UTC (permalink / raw)
  To: ptxdist; +Cc: Lars Pedersen

uhubctl is utility to control USB power per-port on smart USB hubs.
Smart hub is defined as one that implements per-port power switching.

Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
---
 rules/uhubctl.in   |  8 +++++++
 rules/uhubctl.make | 54 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)
 create mode 100644 rules/uhubctl.in
 create mode 100644 rules/uhubctl.make

diff --git a/rules/uhubctl.in b/rules/uhubctl.in
new file mode 100644
index 000000000..ec30f6637
--- /dev/null
+++ b/rules/uhubctl.in
@@ -0,0 +1,8 @@
+## SECTION=shell_and_console
+
+config UHUBCTL
+	bool
+	select LIBUSB
+	prompt "uhubctl"
+	help
+		Utility to control USB power per-port on smart USB hubs.
diff --git a/rules/uhubctl.make b/rules/uhubctl.make
new file mode 100644
index 000000000..394b46855
--- /dev/null
+++ b/rules/uhubctl.make
@@ -0,0 +1,54 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Lars Pedersen <lapeddk@gmail.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_UHUBCTL) += uhubctl
+
+#
+# Paths and names
+#
+UHUBCTL_VERSION	:= 2.4.0
+UHUBCTL_MD5	:= 9bdf73940881df02574a94703ad8b582
+UHUBCTL		:= uhubctl-$(UHUBCTL_VERSION)
+UHUBCTL_SUFFIX	:= tar.gz
+UHUBCTL_URL	:= https://github.com/mvp/uhubctl/archive/v$(UHUBCTL_VERSION).$(UHUBCTL_SUFFIX)
+UHUBCTL_SOURCE	:= $(SRCDIR)/$(UHUBCTL).$(UHUBCTL_SUFFIX)
+UHUBCTL_DIR	:= $(BUILDDIR)/$(UHUBCTL)
+UHUBCTL_LICENSE	:= GPL-2.0-only
+UHUBCTL_LICENSE_FILES := \
+	file://LICENSE;md5=a79e6a142b69522fe7757fe7313895eb
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+UHUBCTL_CONF_TOOL	:= NO
+UHUBCTL_MAKE_ENV 	:= $(CROSS_ENV)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/uhubctl.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, uhubctl)
+	@$(call install_fixup, uhubctl,PRIORITY,optional)
+	@$(call install_fixup, uhubctl,SECTION,base)
+	@$(call install_fixup, uhubctl,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
+	@$(call install_fixup, uhubctl,DESCRIPTION,missing)
+
+	@$(call install_copy, uhubctl, 0, 0, 0755, $(UHUBCTL_DIR)/uhubctl, /usr/bin/uhubctl)
+
+	@$(call install_finish, uhubctl)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.31.1


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


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

* Re: [ptxdist] [APPLIED] uhubctl: new package
  2021-07-23  8:06 [ptxdist] [PATCH] uhubctl: new package Lars Pedersen
@ 2021-07-27  6:21 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2021-07-27  6:21 UTC (permalink / raw)
  To: ptxdist; +Cc: Lars Pedersen

Thanks, applied as 5b856b1ad41b1abf5db001e0e574fac3cda51805.

Michael

[sent from post-receive hook]

On Tue, 27 Jul 2021 08:21:42 +0200, Lars Pedersen <lapeddk@gmail.com> wrote:
> uhubctl is utility to control USB power per-port on smart USB hubs.
> Smart hub is defined as one that implements per-port power switching.
> 
> Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
> Message-Id: <20210723080635.515356-1-lapeddk@gmail.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/uhubctl.in b/rules/uhubctl.in
> new file mode 100644
> index 000000000000..ec30f6637316
> --- /dev/null
> +++ b/rules/uhubctl.in
> @@ -0,0 +1,8 @@
> +## SECTION=shell_and_console
> +
> +config UHUBCTL
> +	bool
> +	select LIBUSB
> +	prompt "uhubctl"
> +	help
> +		Utility to control USB power per-port on smart USB hubs.
> diff --git a/rules/uhubctl.make b/rules/uhubctl.make
> new file mode 100644
> index 000000000000..394b46855549
> --- /dev/null
> +++ b/rules/uhubctl.make
> @@ -0,0 +1,54 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2021 by Lars Pedersen <lapeddk@gmail.com>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_UHUBCTL) += uhubctl
> +
> +#
> +# Paths and names
> +#
> +UHUBCTL_VERSION	:= 2.4.0
> +UHUBCTL_MD5	:= 9bdf73940881df02574a94703ad8b582
> +UHUBCTL		:= uhubctl-$(UHUBCTL_VERSION)
> +UHUBCTL_SUFFIX	:= tar.gz
> +UHUBCTL_URL	:= https://github.com/mvp/uhubctl/archive/v$(UHUBCTL_VERSION).$(UHUBCTL_SUFFIX)
> +UHUBCTL_SOURCE	:= $(SRCDIR)/$(UHUBCTL).$(UHUBCTL_SUFFIX)
> +UHUBCTL_DIR	:= $(BUILDDIR)/$(UHUBCTL)
> +UHUBCTL_LICENSE	:= GPL-2.0-only
> +UHUBCTL_LICENSE_FILES := \
> +	file://LICENSE;md5=a79e6a142b69522fe7757fe7313895eb
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +UHUBCTL_CONF_TOOL	:= NO
> +UHUBCTL_MAKE_ENV 	:= $(CROSS_ENV)
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/uhubctl.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, uhubctl)
> +	@$(call install_fixup, uhubctl,PRIORITY,optional)
> +	@$(call install_fixup, uhubctl,SECTION,base)
> +	@$(call install_fixup, uhubctl,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
> +	@$(call install_fixup, uhubctl,DESCRIPTION,missing)
> +
> +	@$(call install_copy, uhubctl, 0, 0, 0755, $(UHUBCTL_DIR)/uhubctl, /usr/bin/uhubctl)
> +
> +	@$(call install_finish, uhubctl)
> +
> +	@$(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] 2+ messages in thread

end of thread, other threads:[~2021-07-27  6:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-23  8:06 [ptxdist] [PATCH] uhubctl: new package Lars Pedersen
2021-07-27  6:21 ` [ptxdist] [APPLIED] " Michael Olbrich

mailarchive of the ptxdist mailing list

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://lore.ptxdist.org/ptxdist/0 ptxdist/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ptxdist ptxdist/ https://lore.ptxdist.org/ptxdist \
		ptxdist@pengutronix.de
	public-inbox-index ptxdist

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git