The uvc-gadget application is a test application for streaming video
data from a v4l2 capture device to a UVC gadget device that has been
configured in the ConfigFS.

Signed-off-by: Michael Tretter <m.tret...@pengutronix.de>
---
 rules/uvc-gadget.in   |  8 +++++++
 rules/uvc-gadget.make | 55 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 63 insertions(+)
 create mode 100644 rules/uvc-gadget.in
 create mode 100644 rules/uvc-gadget.make

diff --git a/rules/uvc-gadget.in b/rules/uvc-gadget.in
new file mode 100644
index 000000000..9a69e40e5
--- /dev/null
+++ b/rules/uvc-gadget.in
@@ -0,0 +1,8 @@
+## SECTION=multimedia_tools
+
+config UVC_GADGET
+       tristate
+       select HOST_CMAKE
+       prompt "uvc-gadget"
+       help
+         UVC gadget userspace sample application
diff --git a/rules/uvc-gadget.make b/rules/uvc-gadget.make
new file mode 100644
index 000000000..900a6388b
--- /dev/null
+++ b/rules/uvc-gadget.make
@@ -0,0 +1,55 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2019 by Michael Tretter <m.tret...@pengutronix.de>
+#
+# 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_UVC_GADGET) += uvc-gadget
+
+#
+# Paths and names
+#
+UVC_GADGET_VERSION     := 2019-02-13-g58f5ddeb
+UVC_GADGET_MD5         := aabd91acafd035a85c2151b67e1491ca
+UVC_GADGET             := uvc-gadget-$(UVC_GADGET_VERSION)
+UVC_GADGET_SUFFIX      := tar.xz
+UVC_GADGET_URL                 := 
git://git.ideasonboard.org/uvc-gadget.git;tag=$(UVC_GADGET_VERSION)
+UVC_GADGET_SOURCE      := $(SRCDIR)/$(UVC_GADGET).$(UVC_GADGET_SUFFIX)
+UVC_GADGET_DIR         := $(BUILDDIR)/$(UVC_GADGET)
+UVC_GADGET_LICENSE     := GPL-2.0-or-later AND LGPL-2.1-or-later AND MIT
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+UVC_GADGET_CONF_TOOL   := cmake
+UVC_GADGET_CONF_OPT    := \
+       $(CROSS_CMAKE_USR)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/uvc-gadget.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init, uvc-gadget)
+       @$(call install_fixup, uvc-gadget,PRIORITY,optional)
+       @$(call install_fixup, uvc-gadget,SECTION,base)
+       @$(call install_fixup, uvc-gadget,AUTHOR,"Michael Tretter 
<m.tret...@pengutronix.de>")
+       @$(call install_fixup, uvc-gadget,DESCRIPTION,missing)
+
+       @$(call install_copy, uvc-gadget, 0, 0, 0755, -, /usr/bin/uvc-gadget)
+
+       @$(call install_finish, uvc-gadget)
+
+       @$(call touch)
+
+# vim: syntax=make
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to