mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] uvc-gadget: add new package
@ 2019-04-05 10:35 Michael Tretter
  0 siblings, 0 replies; only message in thread
From: Michael Tretter @ 2019-04-05 10:35 UTC (permalink / raw)
  To: ptxdist; +Cc: Michael Tretter

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.tretter@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.tretter@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.tretter@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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-04-05 10:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-05 10:35 [ptxdist] [PATCH] uvc-gadget: add new package Michael Tretter

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