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

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

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