Go to file
Thomas Hebb c37f33cf31 Move read_sysfs_prop() from names.c to its own file
This function was added to names.c by commit dddb696e01 ("lsusb: Read
unkown names from sysfs device desc."), but it doesn't really belong
there: sysfs is an entirely different data source from the udev hwdb
that names.c works with, and this function both does things (like
directly accessing files) that other functions in names.c don't and
doesn't do things (like depending on the work done by names_init()) that
those other functions do.

Signed-off-by: Thomas Hebb <tommyhebb@gmail.com>
2020-08-08 01:30:00 -07:00
LICENSES LICENSES/GPL-3.0.txt: add the file 2018-05-15 12:17:51 +02:00
usbhid-dump usbhid-dump: Do not use rindex 2019-10-02 16:35:09 -07:00
.gitignore .gitignore: add usbhid-dump.8 2019-05-08 21:32:19 +02:00
.gitmodules .gitmodules: add SPDX and copyright lines 2018-05-15 15:49:21 +02:00
.travis.yml .travis.yml: add correct SPDX and copyright notices 2018-05-15 15:54:36 +02:00
autogen.sh autogen.sh: add SPDX and copyright header 2018-05-15 15:22:49 +02:00
configure.ac usbutils 012 release 2019-05-07 16:35:51 +02:00
desc-defs.c lsusb: Add support for audio processing unit type-specific fields. 2018-06-07 17:55:49 +01:00
desc-defs.h lsusb: Add support for descriptor extensions. 2018-06-07 17:55:45 +01:00
desc-dump.c desc-dump.c: fix compiler warning about unused variable 2018-06-07 19:04:44 +02:00
desc-dump.h Add correct SPDX license identifiers to all files 2017-12-08 15:46:10 +01:00
list.h list.h: add copyright information 2018-05-15 15:23:15 +02:00
lsusb-t.c fix up standard int types 2018-12-28 09:50:15 +01:00
lsusb.8.in lsusb.8.in: do not mention usb.ids 2019-09-30 15:46:10 +02:00
lsusb.c Move read_sysfs_prop() from names.c to its own file 2020-08-08 01:30:00 -07:00
lsusb.h lsusb-t: Emit USB IDs and other handy info when verbosity is increased 2018-10-24 07:38:01 -07:00
lsusb.py.in lsusb.py: visually group USB-version-related fields 2019-05-06 14:29:36 +02:00
Makefile.am Move read_sysfs_prop() from names.c to its own file 2020-08-08 01:30:00 -07:00
names.c Move read_sysfs_prop() from names.c to its own file 2020-08-08 01:30:00 -07:00
names.h Move read_sysfs_prop() from names.c to its own file 2020-08-08 01:30:00 -07:00
NEWS usbutils 012 release 2019-05-07 16:35:51 +02:00
README.md README.md: fix fomatting 2018-05-15 16:10:00 +02:00
sysfs.c Move read_sysfs_prop() from names.c to its own file 2020-08-08 01:30:00 -07:00
sysfs.h Move read_sysfs_prop() from names.c to its own file 2020-08-08 01:30:00 -07:00
travis-autogen.sh travis-autogen.sh: add SPDX and copyright information. 2018-05-15 15:24:12 +02:00
usb-devices usb-devices: use /bin/sh hashbang 2018-07-27 15:35:15 +01:00
usb-devices.1.in usb-devices.1: don't mention bash 2019-06-06 16:25:41 +02:00
usb-spec.h fix up standard int types 2018-12-28 09:50:15 +01:00
usbhid-dump.8.in usbhid-dump.8: autogenerate it with the usbutils version number 2019-05-08 21:04:34 +02:00
usbmisc.c fix up standard int types 2018-12-28 09:50:15 +01:00
usbmisc.h fix up standard int types 2018-12-28 09:50:15 +01:00
usbreset.c fix up standard int types 2018-12-28 09:50:15 +01:00
usbutils.spdx usbutils 012 release 2019-05-07 16:35:51 +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, be sure that library is properly installed first.

To work with the "raw" repo, after cloning it just do:

./autogen.sh

Or if you like doing things "by hand" you can try the following:

Get the usbhid-dump git submodule:

git submodule init
git submodule update

Initialize autobuild with:

autoreconf --install --symlink

Configure the project with:

./configure

Build everything with:

make

Install it, if you really want to, with:

make install