Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] libusbgx: new package
@ 2016-04-27 10:18 Gwenhael Goavec-Merou
  2016-04-27 20:41 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Gwenhael Goavec-Merou @ 2016-04-27 10:18 UTC (permalink / raw)
  To: buildroot

From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>

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

Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
---
 package/Config.in              |  1 +
 package/libusbgx/Config.in     | 12 ++++++++++++
 package/libusbgx/libusbgx.hash |  2 ++
 package/libusbgx/libusbgx.mk   | 15 +++++++++++++++
 4 files changed, 30 insertions(+)
 create mode 100644 package/libusbgx/Config.in
 create mode 100644 package/libusbgx/libusbgx.hash
 create mode 100644 package/libusbgx/libusbgx.mk

diff --git a/package/Config.in b/package/Config.in
index 64822bf..de23ad5 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -987,6 +987,7 @@ menu "Hardware handling"
 	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"
diff --git a/package/libusbgx/Config.in b/package/libusbgx/Config.in
new file mode 100644
index 0000000..fcebf3c
--- /dev/null
+++ b/package/libusbgx/Config.in
@@ -0,0 +1,12 @@
+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
diff --git a/package/libusbgx/libusbgx.hash b/package/libusbgx/libusbgx.hash
new file mode 100644
index 0000000..c185c58
--- /dev/null
+++ b/package/libusbgx/libusbgx.hash
@@ -0,0 +1,2 @@
+# Locally computed:
+sha256  1e258205dcde99d0eeb52404ee7ff1bc9a39eb3878e8455fb72bad7cf90c7357  libusbgx-2e3d43ee098ed928d1baa61ce791ce9ff4788c5a.tar.gz
diff --git a/package/libusbgx/libusbgx.mk b/package/libusbgx/libusbgx.mk
new file mode 100644
index 0000000..9d22e0b
--- /dev/null
+++ b/package/libusbgx/libusbgx.mk
@@ -0,0 +1,15 @@
+################################################################################
+#
+# libusbgx
+#
+################################################################################
+
+LIBUSBGX_VERSION = 2e3d43ee098ed928d1baa61ce791ce9ff4788c5a
+LIBUSBGX_SITE = $(call github,libusbgx,libusbgx,$(LIBUSBGX_VERSION))
+LIBUSBGX_LICENSE = LGPLv2.1+
+LIBUSBGX_LICENSE_FILES = COPYING COPYING.LGPL
+LIBUSBGX_DEPENDENCIES = host-pkgconf libconfig
+LIBUSBGX_AUTORECONF = YES
+LIBUSBGX_INSTALL_STAGING = YES
+
+$(eval $(autotools-package))
-- 
2.7.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH 1/1] libusbgx: new package
  2016-04-27 10:18 [Buildroot] [PATCH 1/1] libusbgx: new package Gwenhael Goavec-Merou
@ 2016-04-27 20:41 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-04-27 20:41 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed, 27 Apr 2016 12:18:48 +0200, Gwenhael Goavec-Merou wrote:

> +LIBUSBGX_VERSION = 2e3d43ee098ed928d1baa61ce791ce9ff4788c5a
> +LIBUSBGX_SITE = $(call github,libusbgx,libusbgx,$(LIBUSBGX_VERSION))
> +LIBUSBGX_LICENSE = LGPLv2.1+
> +LIBUSBGX_LICENSE_FILES = COPYING COPYING.LGPL

The COPYING file contains the text of the GPLv2, so this should have
hinted you that the whole thing is not under LGPLv2.1+ only. In fact,
the library is under LGPLv2.1+ and the examples (which are
built and installed by default) are under GPLv2+.

I've fixed that and applied. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-04-27 20:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-27 10:18 [Buildroot] [PATCH 1/1] libusbgx: new package Gwenhael Goavec-Merou
2016-04-27 20:41 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox