uhubctl: new package
authorBaruch Siach <baruch@tkos.co.il>
Tue, 22 Aug 2017 13:11:20 +0000 (16:11 +0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 23 Aug 2017 13:32:43 +0000 (15:32 +0200)
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
DEVELOPERS
package/Config.in
package/uhubctl/Config.in [new file with mode: 0644]
package/uhubctl/uhubctl.hash [new file with mode: 0644]
package/uhubctl/uhubctl.mk [new file with mode: 0644]

index 9df289680e7b9ed1ba5cebbb8d25095c57da59f7..ad52fb710faf3d8a5a05b76fb9741ba9708555ae 100644 (file)
@@ -178,6 +178,7 @@ F:  package/daemon/
 F:     package/ebtables/
 F:     package/openipmi/
 F:     package/ti-uim/
+F:     package/uhubctl/
 
 N:     Ben Boeckel <mathstuf@gmail.com>
 F:     package/taskd/
index 5f83a4d0e6bd244d199485c5dbba98c9b6c61957..d4db8c2f6cb44926204b2d1aed7e1316d2730f73 100644 (file)
@@ -505,6 +505,7 @@ endmenu
        source "package/uccp420wlan/Config.in"
        source "package/udev/Config.in"
        source "package/udisks/Config.in"
+       source "package/uhubctl/Config.in"
        source "package/upower/Config.in"
        source "package/usb_modeswitch/Config.in"
        source "package/usb_modeswitch_data/Config.in"
diff --git a/package/uhubctl/Config.in b/package/uhubctl/Config.in
new file mode 100644 (file)
index 0000000..c000b5a
--- /dev/null
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_UHUBCTL
+       bool "uhubctl"
+       depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
+       select BR2_PACKAGE_LIBUSB
+       help
+         Control USB power per-port on smart USB hubs.
+
+         https://github.com/mvp/uhubctl
+
+comment "uhubctl needs a toolchain w/ threads"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/uhubctl/uhubctl.hash b/package/uhubctl/uhubctl.hash
new file mode 100644 (file)
index 0000000..6afee90
--- /dev/null
@@ -0,0 +1,2 @@
+# Locally computed
+sha256 dfc85571ad86a071bf7a0db7cadf97a870e628777e47176520de6866b4f042b6 uhubctl-047bb1e392efd3e0ea5d5caf351e20761e12cd44.tar.gz
diff --git a/package/uhubctl/uhubctl.mk b/package/uhubctl/uhubctl.mk
new file mode 100644 (file)
index 0000000..7484500
--- /dev/null
@@ -0,0 +1,22 @@
+################################################################################
+#
+# uhubctl
+#
+################################################################################
+
+UHUBCTL_VERSION = 047bb1e392efd3e0ea5d5caf351e20761e12cd44
+UHUBCTL_SITE = $(call github,mvp,uhubctl,$(UHUBCTL_VERSION))
+UHUBCTL_LICENSE = GPL-2.0
+UHUBCTL_LICENSE_FILES = LICENSE
+UHUBCTL_DEPENDENCIES = libusb
+
+define UHUBCTL_BUILD_CMDS
+       $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
+endef
+
+define UHUBCTL_INSTALL_TARGET_CMDS
+       $(TARGET_CONFIGURE_OPTS) DESTDIR=$(TARGET_DIR) \
+               $(MAKE) -C $(@D) install
+endef
+
+$(eval $(generic-package))