Go to file
Emil Velikov 5d14ff7127 meson: always include config.h first, use -include
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>
2024-09-18 23:15:10 +01:00
LICENSES SPDX header cleanups from GPL-2.0 -> GPL-2.0-only 2021-02-22 15:09:07 +01:00
usbhid-dump meson: always include config.h first, use -include 2024-09-18 23:15:10 +01:00
.gitignore usbutils: remove usbutils.pc 2024-09-02 19:25:37 +02:00
.gitmodules rename "GPL-2.0+" to "GPL-2.0-or-later" 2021-02-22 14:25:02 +01:00
.travis.yml usbutils: convert build system to use meson 2024-09-02 19:26:57 +02:00
autogen.sh autogen.sh: use valid email for 2024 copyright 2024-09-18 22:09:08 +01:00
desc-defs.c meson: always include config.h first, use -include 2024-09-18 23:15:10 +01:00
desc-defs.h rename "GPL-2.0+" to "GPL-2.0-or-later" 2021-02-22 14:25:02 +01:00
desc-dump.c meson: always include config.h first, use -include 2024-09-18 23:15:10 +01:00
desc-dump.h rename "GPL-2.0+" to "GPL-2.0-or-later" 2021-02-22 14:25:02 +01:00
list.h SPDX header cleanups from GPL-2.0 -> GPL-2.0-only 2021-02-22 15:09:07 +01:00
lsusb-t.c lsusb: add fallback names for 'lsusb -v' output 2023-10-30 12:26:33 +01:00
lsusb.8.in usbutils: convert build system to use meson 2024-09-02 19:26:57 +02:00
lsusb.c meson: always include config.h first, use -include 2024-09-18 23:15:10 +01:00
lsusb.h rename "GPL-2.0+" to "GPL-2.0-or-later" 2021-02-22 14:25:02 +01:00
lsusb.py.1.in usbutils: convert build system to use meson 2024-09-02 19:26:57 +02:00
lsusb.py.in usbutils: convert build system to use meson 2024-09-02 19:26:57 +02:00
meson.build meson: always include config.h first, use -include 2024-09-18 23:15:10 +01:00
names.c meson: always include config.h first, use -include 2024-09-18 23:15:10 +01:00
names.h lsusb: add fallback names for 'lsusb -v' output 2023-10-30 12:26:33 +01:00
NEWS usbutils 017 release 2023-10-30 16:37:05 +01:00
README.md README: list libudev as a requirement 2024-09-18 22:54:06 +01:00
sysfs.c rename "GPL-2.0+" to "GPL-2.0-or-later" 2021-02-22 14:25:02 +01:00
sysfs.h rename "GPL-2.0+" to "GPL-2.0-or-later" 2021-02-22 14:25:02 +01:00
travis-autogen.sh SPDX header cleanups from GPL-2.0 -> GPL-2.0-only 2021-02-22 15:09:07 +01:00
usb-devices usb-devices: Fix usb-devices with busybox 2024-09-05 08:46:52 +02:00
usb-devices.1.in usbutils: convert build system to use meson 2024-09-02 19:26:57 +02:00
usb-spec.h Fix a typo in usb-spec.h 2023-04-16 19:30:57 +02:00
usbhid-dump.8.in usbutils: convert build system to use meson 2024-09-02 19:26:57 +02:00
usbmisc.c meson: always include config.h first, use -include 2024-09-18 23:15:10 +01:00
usbmisc.h rename "GPL-2.0+" to "GPL-2.0-or-later" 2021-02-22 14:25:02 +01:00
usbreset.1.in usbutils: convert build system to use meson 2024-09-02 19:26:57 +02:00
usbreset.c usbreset: Allow idProduct and idVendor to be 0 2023-03-01 14:38:22 +01:00
usbutils.spdx usbutils.spdx: update file based on recent file movements 2024-09-02 19:29:41 +02:00

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