source "package/libsoc/Config.in"
source "package/libusb/Config.in"
source "package/libusb-compat/Config.in"
+ source "package/libusbgx/Config.in"
source "package/libv4l/Config.in"
source "package/libxkbcommon/Config.in"
source "package/mraa/Config.in"
--- /dev/null
+config BR2_PACKAGE_LIBUSBGX
+ bool "libusbgx"
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ select BR2_PACKAGE_LIBCONFIG
+ help
+ libusbgx is a C library encapsulating the kernel USB
+ gadget-configfs userspace API functionality.
+
+ https://github.com/libusbgx/libusbgx
+
+comment "libusbgx needs a toolchain w/ threads"
+ depends on !BR2_TOOLCHAIN_HAS_THREADS
--- /dev/null
+# Locally computed:
+sha256 1e258205dcde99d0eeb52404ee7ff1bc9a39eb3878e8455fb72bad7cf90c7357 libusbgx-2e3d43ee098ed928d1baa61ce791ce9ff4788c5a.tar.gz
--- /dev/null
+################################################################################
+#
+# libusbgx
+#
+################################################################################
+
+LIBUSBGX_VERSION = 2e3d43ee098ed928d1baa61ce791ce9ff4788c5a
+LIBUSBGX_SITE = $(call github,libusbgx,libusbgx,$(LIBUSBGX_VERSION))
+LIBUSBGX_LICENSE = GPLv2+ (examples), LGPLv2.1+ (library)
+LIBUSBGX_LICENSE_FILES = COPYING COPYING.LGPL
+LIBUSBGX_DEPENDENCIES = host-pkgconf libconfig
+LIBUSBGX_AUTORECONF = YES
+LIBUSBGX_INSTALL_STAGING = YES
+
+$(eval $(autotools-package))