blob: a30037b6938aa96f14f4e7d814d3784de393dad9 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001SUMMARY = "Host side USB console utilities"
2DESCRIPTION = "Contains the lsusb utility for inspecting the devices connected to the USB bus."
3HOMEPAGE = "http://www.linux-usb.org"
4SECTION = "base"
5
6LICENSE = "GPL-2.0-or-later & (GPL-2.0-only | GPL-3.0-only)"
7# License files went missing in 010, when 011 is released add LICENSES/* back
8LIC_FILES_CHKSUM = "file://lsusb.c;endline=1;md5=7226e442a172bcf25807246d7ef1eba1 \
9 file://lsusb.py.in;beginline=2;endline=2;md5=c443ada211d701156e42ea36d41625b3 \
10 "
11
12DEPENDS = "libusb1 virtual/libiconv udev"
13
14SRC_URI = "${KERNELORG_MIRROR}/linux/utils/usb/usbutils/usbutils-${PV}.tar.gz \
15 "
16SRC_URI[sha256sum] = "2b8140664578f39c3f6f0166a1b950f8655304e63e3d7f89899acb99bc5cb8e7"
17
18inherit autotools pkgconfig update-alternatives
19
20ALTERNATIVE:${PN} = "lsusb"
21ALTERNATIVE_PRIORITY = "100"
22
23# The binaries are mostly GPL-2.0-or-later apart from lsusb.py which is
24# GPL-2.0-only or GPL-3.0-only.
25LICENSE:${PN} = "GPL-2.0-or-later"
26LICENSE:${PN}-python = "GPL-2.0-only | GPL-3.0-only"
27
28RRECOMMENDS:${PN} = "udev-hwdb"
29
30PACKAGE_BEFORE_PN =+ "${PN}-python"
31FILES:${PN}-python += "${bindir}/lsusb.py"
32RDEPENDS:${PN}-python = "python3-core"