History log of /freebsd-current/lib/libusb/Makefile
Revision Date Author Comments
# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/


# 4c6bcffd 26-Jan-2023 Hans Petter Selasky <hselasky@FreeBSD.org>

libusb(3): Implement libusb_init_context() and the needed structures and definitions.

Differential Revision: https://reviews.freebsd.org/D38212
MFC after: 1 week
Sponsored by: NVIDIA Networking


# aa87aa52 02-Oct-2022 Hans Petter Selasky <hselasky@FreeBSD.org>

libusb(3): Implement libusb_interrupt_event_handler() by exposing existing function.

MFC after: 1 week
Sponsored by: NVIDIA Networking


# ac175bd3 11-Aug-2022 Alex Richardson <arichardson@FreeBSD.org>

Install working pkgconfig .pc files for compat libraries

The default ones are install them to /usr/libdata/pkgconfig, and we can't
use this path for compat libraries, so we use /usr/lib<suffix>/pkgconfigi here.

Test Plan: grep -rn libdir= ./usr/lib32/pkgconfig/*.pc
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D34939


# 8010f4ad 17-Dec-2021 Brooks Davis <brooks@FreeBSD.org>

libusb: remove use of COMPAT_32BIT

This codepath used uint64_t's in place of pointers in structs and
arrays to allow 32-bit code to use 64-bit version of ioctls. Now
that we support 32-bit compat natively this is no longer needed.

Reviewed by: hselasky, jrtc27 (prior version)


# 500f4659 16-Mar-2021 Emmanuel Vadot <manu@FreeBSD.org>

Convert libs with pc files to use PCFILES

Now the .pc ends up in the correct package (-dev)

Reviewed by: bapt, emaste
Differential Revision: https://reviews.freebsd.org/D29172
MFC after: 2 weeks


# 04391da3 09-Jun-2020 Kyle Evans <kevans@FreeBSD.org>

libusb: improve compatibility

Specifically, add LIBUSB_CLASS_PHYSICAL and the libusb_has_capability API.
Descriptions and functionality for these derived from the
documentation at [0]. The current set of capabilities are all supported by
libusb.

These were detected as missing after updating net/freerdp to 2.1.1, which
attempted to use both.

[0] http://libusb.sourceforge.net/api-1.0/group__libusb__misc.html

Reviewed by: hselasky
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D25194


# 34b0ca24 27-Dec-2019 Hans Petter Selasky <hselasky@FreeBSD.org>

Implement new libusb v2.0 API function, libusb20_dev_get_stats().

This function is useful when debugging USB device issues.

MFC after: 1 week
Sponsored by: Mellanox Technologies


# 4c1a82ce 05-Sep-2019 Emmanuel Vadot <manu@FreeBSD.org>

pkgbase: Create a FreeBSD-utilities package and make it the default one

The default package use to be FreeBSD-runtime but it should only contain
binaries and libs enough to boot to single user and repair the system, it
is also very handy to have a package that can be tranform to a small mfsroot.
So create a new package named FreeBSD-utilities and make it the default one.
Also move a few binaries and lib into this package when it make sense.
Reviewed by: bapt, gjb
Differential Revision: https://reviews.freebsd.org/D21506


# a0c93fa3 23-Jun-2016 Hans Petter Selasky <hselasky@FreeBSD.org>

Add support for USB streams to the LibUSB v1.0 API and update the
libusb(3) manual page.

Approved by: re (gjb)
Requested by: swills
MFC after: 1 week


# 7bdc064b 22-Jun-2016 Hans Petter Selasky <hselasky@FreeBSD.org>

Implement libusb_hotplug_register_callback() and
libusb_hotplug_deregister_callback() for the LibUSB v1.0 API and
update the libusb(3) manual page.

Approved by: re (kib)
Requested by: swills
MFC after: 1 week


# 37d0636a 16-Jun-2016 Hans Petter Selasky <hselasky@FreeBSD.org>

Add multiple missing descriptor parsing functions to the LibUSB v1.0 API.

Approved by: re (kib)
Requested by: swills
MFC after: 1 week


# 5b40d960 16-Jun-2016 Hans Petter Selasky <hselasky@FreeBSD.org>

Add support for libusb_set_auto_detach_kernel_driver() to the LibUSB v1.0 API.

Approved by: re (kostikbel)
Requested by: swills
MFC after: 1 week


# 14b896ce 16-Jun-2016 Hans Petter Selasky <hselasky@FreeBSD.org>

Implement libusb_get_version() and update libusb manual page.

Approved by: re (glebius)
Requested by: swills
MFC after: 1 week


# a70cba95 04-Feb-2016 Glen Barber <gjb@FreeBSD.org>

First pass through library packaging.

Sponsored by: The FreeBSD Foundation


# 43fa36d5 03-Oct-2015 Bryan Drewery <bdrewery@FreeBSD.org>

Remove redundant COMPAT_32BIT guard on pkgconfig files. This is already handled
by the LIBRARIES_ONLY mechanism protecting FILES.

Sponsored by: EMC / Isilon Storage Division


# de0e3997 18-Sep-2015 Bryan Drewery <bdrewery@FreeBSD.org>

Replace beforeinstall: handling with FILES.

This actually fixes some cases to respect LIBRARIES_ONLY.

Sponsored by: EMC / Isilon Storage Division


# 84d5c498 15-Aug-2015 Antoine Brodin <antoine@FreeBSD.org>

bsd.lib.mk has to be included after MLINKS assignment


# 6b129086 25-Nov-2014 Baptiste Daroussin <bapt@FreeBSD.org>

Convert libraries to use LIBADD
While here reduce a bit overlinking


# 89ca4e2d 27-Oct-2014 John-Mark Gurney <jmg@FreeBSD.org>

only install .pc files when we are not installing 32bit compat libs...

This fixes the problem of installing the .pc files multiple times...


# 03205428 05-Jan-2014 Hans Petter Selasky <hselasky@FreeBSD.org>

Implement two new libusb API functions.

PR: usb/185454
MFC after: 2 weeks


# 041d3f3f 24-Jul-2013 Rui Paulo <rpaulo@FreeBSD.org>

Add pkgconf files for libusb.

Reviewed by: hselasky


# 99cd1f32 14-Jul-2013 Hans Petter Selasky <hselasky@FreeBSD.org>

Add some missing definitions to build a working FreeBSD's libusb under Linux.


# c77a24c2 03-May-2013 Hans Petter Selasky <hselasky@FreeBSD.org>

Add new USB API to get the port path of a USB device.

MFC after: 2 weeks
Requested by: emaste @


# 66194130 12-Mar-2013 Hans Petter Selasky <hselasky@FreeBSD.org>

- Make the FreeBSD's USB library compile under Linux.
- Fix a compile warning where the return value of a call
to a write() function was ignored.
- Remove redundant include files from userland USB header files.
- Add some now needed include files to various C-files.


# aafcb732 13-Feb-2013 Hans Petter Selasky <hselasky@FreeBSD.org>

Add USB API to read power draw on USB devices.
Update usbconfig to print power draw on USB devices.

MFC after: 2 weeks
Submitted by: Matt Burke @ icritical.com


# f7287225 12-Jun-2012 Hans Petter Selasky <hselasky@FreeBSD.org>

LibUSB v1.0 API compiliance and bugfixes.

- Use CLOCK_MONOTONIC instead of CLOCK_REALTIME, because CLOCK_MONOTONIC
does not wrap into negative in near future. This fixes any potential
problems using "pthread_cond_timedwait()".

- Fix a bug where the "libusb_wait_for_event()" function computes an
absolute timeout instead of a relative timeout. USB transfers do
not depend on this timeout value.

- Add dependency towards LibPthread to Makefile, because LibUSB v1.0
needs this library to function correctly.

MFC after: 1 week


# 78ed0e49 07-May-2012 Hans Petter Selasky <hselasky@FreeBSD.org>

Add missing LibUSB 1.0 API function: libusb_get_string_descriptor().

Reported by: Xiaofan Chen


# 93fab61d 25-Apr-2012 Hans Petter Selasky <hselasky@FreeBSD.org>

Bump the libusb major version due to the last commit, which
changes the libusb 1.0 API. While at it, correct a manual
page symlink.

Suggested by: kib @


# 748205a3 12-Apr-2012 Hans Petter Selasky <hselasky@FreeBSD.org>

Add missing LibUSB 1.0 API function.

Reported by: lme @
MFC after: 1 week


# 4c0392e6 09-Nov-2011 Hans Petter Selasky <hselasky@FreeBSD.org>

Add definition of some USB 3.0 descriptors to libusb 1.0 and libusb 2.0.
Some header file parts of this patch were taken from a patch submitted
by Maya Erez <merez@codeaurora.org> to the LibUSB developers list.

MFC after: 1 week


# c61f2561 19-Sep-2011 Hans Petter Selasky <hselasky@FreeBSD.org>

Implement missing USB debug information functions.

Approved by: re (kib)
MFC after: 1 week


# ca96e26a 16-Aug-2011 Hans Petter Selasky <hselasky@FreeBSD.org>

Update LibUSB v1.0 manual page:
- fix some minor spelling
- fix some style
- add description of new function

MFC after: 1 week
Approved by: re (kib)


# 2485d8a7 24-Jun-2011 Hans Petter Selasky <hselasky@FreeBSD.org>

- Add two new API's to libusb20 which can be used to retrive information
about the parent USB device:
- libusb20_dev_get_parent_address
- libusb20_dev_get_parent_port

- Rename libusb20_compat01.c into libusb01.c

MFC after: 3 days


# 892f4806 28-Feb-2011 Hans Petter Selasky <hselasky@FreeBSD.org>

- Add missing MLINKS for libusb and some manpage fixes.

MFC after: 14 days
Approved by: thompsa (mentor)


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# 51fd3d75 14-Oct-2010 Hans Petter Selasky <hselasky@FreeBSD.org>

- Add support for LibUSB in 32-bit compatibility mode.

Approved by: thompsa (mentor)


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# daaf5759 02-Jan-2010 Ed Schouten <ed@FreeBSD.org>

Build lib/ with WARNS=6 by default.

Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and
lower it when needed.

I'm setting WARNS?=0 for secure/. It seems secure/ includes the
Makefile.inc provided by lib/. I'm not going to touch that directory.
Most of the code there is contributed anyway.


# 3ca3047a 19-Jul-2009 Ken Smith <kensmith@FreeBSD.org>

Bump the version of all non-symbol-versioned shared libraries in
preparation for 8.0-RELEASE. Add the previous version of those
libraries to ObsoleteFiles.inc and bump __FreeBSD_Version.

Reviewed by: kib
Approved by: re (rwatson)


# a5118bdf 22-Jun-2009 Andrew Thompson <thompsa@FreeBSD.org>

Add libusb 1.0 support which is compatible with the latest revision on
Sourceforge. Libusb 1.0 is a portable usb api released December 2008 and
supersedes the original libusb released 10 years ago, it supports isochronous
endpoints and asynchronous I/O. Many applications have already started using
the interfaces.

This has been developed as part of Google Summer of Code this year by Sylvestre
Gallon and has been cribbed early due to it being desirable in FreeBSD 8.0

Submitted by: Sylvestre Gallon
Sponsored by: Google Summer of Code 2009
Reviewed by: Hans Petter Selasky


# 4eaae44d 10-Mar-2009 Andrew Thompson <thompsa@FreeBSD.org>

Update libusb.3 name and add mlinks for usb.3 and libusb20.3


# df4b8c2a 09-Mar-2009 Andrew Thompson <thompsa@FreeBSD.org>

libusb20 is now installed as libusb, remove the version number from the
directory name.


# a6402160 27-Mar-2002 Josef Karthauser <joe@FreeBSD.org>

Follow NetBSD and rename libusb to libusbhid.

MFC after: 7 days


# 4a558355 27-Mar-2001 Ruslan Ermilov <ru@FreeBSD.org>

MAN[1-9] -> MAN.


# 9e2046df 11-Jun-2000 Nick Hibma <n_hibma@FreeBSD.org>

The USB library from NetBSD by Lennart Augustsson <lennart@augustsson.net>.