blob: a2e340ea4f50f342fc403a1b63ff6f4171997ea7 [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 \
Patrick Williams705982a2024-01-12 09:51:57 -060015 file://0001-usbutils.pc.in-Fix-Cflags-entry.patch \
Andrew Geissler517393d2023-01-13 08:55:19 -060016 "
Patrick Williams705982a2024-01-12 09:51:57 -060017SRC_URI[sha256sum] = "f704c4cb78a060db88b43aac6ebfd3d93c2c5cf1d6dd0e42936faaf00814ab00"
Andrew Geissler517393d2023-01-13 08:55:19 -060018
19inherit autotools pkgconfig update-alternatives
20
21ALTERNATIVE:${PN} = "lsusb"
22ALTERNATIVE_PRIORITY = "100"
23
24# The binaries are mostly GPL-2.0-or-later apart from lsusb.py which is
25# GPL-2.0-only or GPL-3.0-only.
26LICENSE:${PN} = "GPL-2.0-or-later"
27LICENSE:${PN}-python = "GPL-2.0-only | GPL-3.0-only"
28
29RRECOMMENDS:${PN} = "udev-hwdb"
30
31PACKAGE_BEFORE_PN =+ "${PN}-python"
32FILES:${PN}-python += "${bindir}/lsusb.py"
33RDEPENDS:${PN}-python = "python3-core"