diff options
author | Michael Grzeschik <m.grzeschik@pengutronix.de> | 2021-04-29 01:24:10 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2021-04-30 13:48:41 +0200 |
commit | 6677792614505262f62e8b0a5dfbe1df130ed633 (patch) | |
tree | 5b2285f03f7ee98935dae15def161cce271383c6 /rules | |
parent | e0e1674f4dc3265734dbe985b0aaf3ec5ee4bd04 (diff) | |
download | ptxdist-6677792614505262f62e8b0a5dfbe1df130ed633.tar.gz ptxdist-6677792614505262f62e8b0a5dfbe1df130ed633.tar.xz |
libusbgx: new package
This patch adds libusbgx support to ptxdist. It includes patches to work
with uvc gadgets.
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Message-Id: <20210428232410.15059-1-m.grzeschik@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r-- | rules/libusbgx.in | 8 | ||||
-rw-r--r-- | rules/libusbgx.make | 66 |
2 files changed, 74 insertions, 0 deletions
diff --git a/rules/libusbgx.in b/rules/libusbgx.in new file mode 100644 index 000000000..98776c026 --- /dev/null +++ b/rules/libusbgx.in @@ -0,0 +1,8 @@ +## SECTION=communication + +config LIBUSBGX + bool + prompt "libusbgx" + help + libusbgx is a C library encapsulating the kernel USB gadget-configfs + userspace API functionality. diff --git a/rules/libusbgx.make b/rules/libusbgx.make new file mode 100644 index 000000000..6c8fce429 --- /dev/null +++ b/rules/libusbgx.make @@ -0,0 +1,66 @@ +# -*-makefile-*- +# +# Copyright (C) 2018 by Thomas Haemmerle <thomas.haemmerle@wolfvision.net> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_LIBUSBGX) += libusbgx + +# +# Paths and names +# +LIBUSBGX_VERSION := 0.2.0 +LIBUSBGX_MD5 := a8ea2234c6355ac8ad2ca86c453297bd +LIBUSBGX := libusbgx-$(LIBUSBGX_VERSION) +LIBUSBGX_SUFFIX := zip +LIBUSBGX_URL := \ + https://github.com/libusbgx/libusbgx/archive/libusbgx-v$(LIBUSBGX_VERSION).zip +LIBUSBGX_SOURCE := \ + $(SRCDIR)/$(LIBUSBGX).$(LIBUSBGX_SUFFIX) +LIBUSBGX_DIR := $(BUILDDIR)/$(LIBUSBGX) +LIBUSBGX_LICENSE := GPLv2 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +LIBUSBGX_CONF_ENV := $(CROSS_ENV) + +# +# autoconf +# +LIBUSBGX_CONF_TOOL := autoconf +LIBUSBGX_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + --without-libconfig \ + --enable-examples \ + --disable-gadget-schemes + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/libusbgx.targetinstall: + @$(call targetinfo) + + @$(call install_init, libusbgx) + @$(call install_fixup, libusbgx, PRIORITY, optional) + @$(call install_fixup, libusbgx, SECTION, base) + @$(call install_fixup, libusbgx, AUTHOR, "Thomas Haemmerle <thomas.haemmerle@wolfvision.net>") + @$(call install_fixup, libusbgx, DESCRIPTION, missing) + + @$(call install_lib, libusbgx, 0, 0, 0644, libusbgx) + @$(call install_tree, libusbgx, 0, 0, -, /usr/bin) + + @$(call install_finish, libusbgx) + + @$(call touch) + +# vim: syntax=make |