xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/uhubctl/uhubctl_2.4.0.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "USB hub per-port power control"
2*4882a593SmuzhiyunHOMEPAGE = "https://github.com/mvp/uhubctl"
3*4882a593SmuzhiyunBUGTRACKER = "https://github.com/mvp/uhubctl/issues"
4*4882a593SmuzhiyunDEPENDS = "libusb1"
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunLICENSE = "GPL-2.0-only"
7*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunSRCREV = "014b55ac5d1d7fb46a8f1eefe9fc3b87ea65a75f"
10*4882a593SmuzhiyunSRC_URI = "git://github.com/mvp/${BPN};branch=master;protocol=https"
11*4882a593SmuzhiyunS = "${WORKDIR}/git"
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun# uhubctl gets its program version from "git describe". As we use the source
14*4882a593Smuzhiyun# archive do reduce download size replace the call with our hardcoded version.
15*4882a593Smuzhiyundo_configure:append() {
16*4882a593Smuzhiyun    sed -i "s/^\(GIT_VERSION :=\).*$/\1 ${PV}/g" ${S}/Makefile
17*4882a593Smuzhiyun}
18*4882a593Smuzhiyun
19*4882a593Smuzhiyundo_install () {
20*4882a593Smuzhiyun    oe_runmake install DESTDIR=${D}
21*4882a593Smuzhiyun}
22