5d14ff7127
Seems like we've (tried) to fix this in the past, although it crept in again. Just use a compiler directive and drop the error prone individual includes. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> |
||
---|---|---|
LICENSES | ||
usbhid-dump | ||
.gitignore | ||
.gitmodules | ||
.travis.yml | ||
autogen.sh | ||
desc-defs.c | ||
desc-defs.h | ||
desc-dump.c | ||
desc-dump.h | ||
list.h | ||
lsusb-t.c | ||
lsusb.8.in | ||
lsusb.c | ||
lsusb.h | ||
lsusb.py.1.in | ||
lsusb.py.in | ||
meson.build | ||
names.c | ||
names.h | ||
NEWS | ||
README.md | ||
sysfs.c | ||
sysfs.h | ||
travis-autogen.sh | ||
usb-devices | ||
usb-devices.1.in | ||
usb-spec.h | ||
usbhid-dump.8.in | ||
usbmisc.c | ||
usbmisc.h | ||
usbreset.1.in | ||
usbreset.c | ||
usbutils.spdx |
usbutils
This is a collection of USB tools for use on Linux and BSD systems to query what type of USB devices are connected to the system. This is to be run on a USB host (i.e. a machine you plug USB devices into), not on a USB device (i.e. a device you plug into a USB host.)
Building and installing
Note, usbutils depends on libusb and libudev, be sure that libraries are properly installed first.
To work with the "raw" repo, after cloning it just do:
./autogen.sh
which will build everything and place the binaries into the build/
subdirectory.
usbutils uses meson to build, so if you wish to just build by hand you can do:
meson setup build
cd build/
meson compile
Source location
The source for usbutils can be found in many places, depending on the git hosting site you prefer. Here are the primary locations, in order of preference by the maintainer:
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git/
https://git.sr.ht/~gregkh/usbutils
https://github.com/gregkh/usbutils