aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/uhubctl/uhubctl_2.4.0.bb
diff options
context:
space:
mode:
authorzhengruoqin <zhengrq.fnst@fujitsu.com>2021-09-05 07:23:07 +0800
committerKhem Raj <raj.khem@gmail.com>2021-09-05 22:19:55 -0700
commit01c80c3f1819aff10f51c6cafa468b90f5dfcb82 (patch)
treef1bff9b1b40417ae2c53c1223d2b4ffa0cd0b447 /meta-oe/recipes-support/uhubctl/uhubctl_2.4.0.bb
parent5bfa82d1026dbd02383511d516679111fb8bc5de (diff)
downloadmeta-openembedded-contrib-01c80c3f1819aff10f51c6cafa468b90f5dfcb82.tar.gz
uhubctl: upgrade 2.3.0 -> 2.4.0
Support for toggle action (turn power on or off opposite to current power state) b99a080. More sane error reporting when we enumerate devices which lack permissions 9b5efa0. Allow pkg-config override to make some build systems (e.g. chromium OS) happier 92736a8. Even more supported devices. Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/uhubctl/uhubctl_2.4.0.bb')
-rw-r--r--meta-oe/recipes-support/uhubctl/uhubctl_2.4.0.bb21
1 files changed, 21 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/uhubctl/uhubctl_2.4.0.bb b/meta-oe/recipes-support/uhubctl/uhubctl_2.4.0.bb
new file mode 100644
index 0000000000..44aeaed099
--- /dev/null
+++ b/meta-oe/recipes-support/uhubctl/uhubctl_2.4.0.bb
@@ -0,0 +1,21 @@
+SUMMARY = "USB hub per-port power control"
+HOMEPAGE = "https://github.com/mvp/uhubctl"
+BUGTRACKER = "https://github.com/mvp/uhubctl/issues"
+DEPENDS = "libusb1"
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+SRCREV = "014b55ac5d1d7fb46a8f1eefe9fc3b87ea65a75f"
+SRC_URI = "git://github.com/mvp/${BPN}"
+S = "${WORKDIR}/git"
+
+# uhubctl gets its program version from "git describe". As we use the source
+# archive do reduce download size replace the call with our hardcoded version.
+do_configure:append() {
+ sed -i "s/^\(GIT_VERSION :=\).*$/\1 ${PV}/g" ${S}/Makefile
+}
+
+do_install () {
+ oe_runmake install DESTDIR=${D}
+}