Skip to content
libusbg-neXt
C C++ M4 Other
Branch: master
Clone or download
a3f and kopasiak libusbgx: fix --without-libconfig build against glibc-2.28
Commit 45c14ef ("libusbgx: fix build with glibc-2.28 since
<sys/sysmacros.h> is no more included by <sys/types.h>")
fixed this issue for the (default) --with-libconfig configuration,
but building --without-libconfig still throws a linker error
because makedev was assumed to be an external symbol in
usbg_common.c.

Include <sys/sysmacros.h> there to address this.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Latest commit 283879d Mar 27, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc libusbgx: tests: Update guideline changes Dec 22, 2015
examples libusbgx: fix build with glibc-2.28 since <sys/sysmacros.h> is no mor… Sep 12, 2018
include/usbg libusbgx: fix build with glibc-2.28 since <sys/sysmacros.h> is no mor… Sep 12, 2018
m4 Initial release Sep 4, 2013
packaging libusbgx: Release libusbgx version 0.2.0 Mar 2, 2018
src libusbgx: fix --without-libconfig build against glibc-2.28 Apr 25, 2019
tests libusbgx: tests: Add a C++ compilation checker Feb 22, 2018
.gbs.conf libusbgx: packaging: Add packaging for generating rpm package. Dec 22, 2015
.gitignore libusbgx: Update .gitignore for tests directory Dec 22, 2015
AUTHORS libusbgx: Add own name to AUTHORS file. Dec 22, 2015
COPYING Initial release Sep 4, 2013
COPYING.LGPL Initial release Sep 4, 2013
ChangeLog libusbgx: Release libusbgx version 0.2.0 Mar 2, 2018
DoxygenLayout.xml libusbgx: Fix doc build with new doxygen version Aug 22, 2018
INSTALL libusbgx: Add build dependencies info to doc Mar 2, 2018
Makefile.am libusbgx: add USBG_VERSION preprocessor symbol Feb 6, 2018
NEWS Initial release Sep 4, 2013
README Fork from libusbg project Dec 22, 2015
acinclude.m4 Initial release Sep 4, 2013
aminclude.am Initial release Sep 4, 2013
configure.ac libusbgx: Release libusbgx version 0.2.0 Mar 2, 2018
doxygen.cfg.in
libusbgx.pc.in libusbgx: Fix pkgconfig to link correct library Jan 29, 2016

README

libusbg-neXt (libusbgx)
-------

libusbgx is a C library encapsulating the kernel USB gadget-configfs
userspace API functionality.

It provides routines for creating and parsing USB gadget devices using
the configfs API. Currently, all USB gadget configfs functions that can
be enabled in kernel release 3.11 (Linux for Workgroups!) are supported.

See the Doxygen docs and examples for complete details on the
programming API and INSTALL for installation of the library and
examples.

To run the examples:

$ mount -t configfs none /sys/kernel/config
$ gadget-acm-ecm
$ show-gadgets
ID 1d6b:0104 'g1'
  UDC			3f120000.usbotg
  bDeviceClass		0x00
  bDeviceSubClass	0x00
  bDeviceProtocol	0x00
  bMaxPacketSize0	0x40
  bcdDevice		0x0311
  bcdUSB		0x0000
  idVendor		0x1d6b
  idProduct		0x0104
  Serial Number		0123456789
  Manufacturer		Foo Inc.
  Product		Bar Gadget
  Function 'acm.usb0'
    port_num		0
  Function 'acm.usb1'
    port_num		1
  Function 'ecm.usb0'
    dev_addr		32:1b:dc:a4:bc:a2
    host_addr		82:b7:58:62:f6:31
    ifname		usb0
    qmult		5
  Configuration 'c.1'
    MaxPower		2
    bmAttributes	0x80
    configuration	CDC 2xACM+ECM
    acm.GS0 -> acm.usb0
    acm.GS1 -> acm.usb0
    ecm.usb0 -> ecm.usb0
You can’t perform that action at this time.