From 964ae9f79841fdd56266c3598cc72b9f0f45c2e4 Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Mon, 7 Nov 2022 16:33:40 +0800 Subject: uhubctl: upgrade 2.4.0 -> 2.5.0 Changelog: =========== * Added support for Linux sysfs based power switching provided in Linux kernel 6.0+ - it allows to solve reliability issues when turning power off on Linux (#450). * Added option --nodesc to skip querying device string descriptors (necessary for some buggy devices which otherwise would completely freeze). * New simpler way to configure udev rules on Linux (one rule works for any USB hub). * Even more supported devices. Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- meta-oe/recipes-support/uhubctl/uhubctl_2.5.0.bb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 meta-oe/recipes-support/uhubctl/uhubctl_2.5.0.bb (limited to 'meta-oe/recipes-support/uhubctl/uhubctl_2.5.0.bb') diff --git a/meta-oe/recipes-support/uhubctl/uhubctl_2.5.0.bb b/meta-oe/recipes-support/uhubctl/uhubctl_2.5.0.bb new file mode 100644 index 0000000000..8b334dbdec --- /dev/null +++ b/meta-oe/recipes-support/uhubctl/uhubctl_2.5.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 = "GPL-2.0-only" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +SRCREV = "20276ad5ced147d018e2b3fccedabd94597aa25e" +SRC_URI = "git://github.com/mvp/${BPN};branch=master;protocol=https" +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} +} -- cgit 1.2.3-korg