All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] uvc-gadget: add recipe for UVC gadget test app
@ 2017-05-01 20:54 Denys Dmytriyenko
  2017-05-01 20:54 ` [PATCH 2/2] packagegroup-arago-test: add uvc-gadget app Denys Dmytriyenko
  0 siblings, 1 reply; 2+ messages in thread
From: Denys Dmytriyenko @ 2017-05-01 20:54 UTC (permalink / raw)
  To: meta-arago

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
---
 ...0001-uvc-gadget-don-t-hardcode-uvc.h-path.patch | 26 ++++++++++++++++++++++
 .../recipes-devtools/uvc-gadget/uvc-gadget_git.bb  | 22 ++++++++++++++++++
 2 files changed, 48 insertions(+)
 create mode 100644 meta-arago-extras/recipes-devtools/uvc-gadget/files/0001-uvc-gadget-don-t-hardcode-uvc.h-path.patch
 create mode 100644 meta-arago-extras/recipes-devtools/uvc-gadget/uvc-gadget_git.bb

diff --git a/meta-arago-extras/recipes-devtools/uvc-gadget/files/0001-uvc-gadget-don-t-hardcode-uvc.h-path.patch b/meta-arago-extras/recipes-devtools/uvc-gadget/files/0001-uvc-gadget-don-t-hardcode-uvc.h-path.patch
new file mode 100644
index 0000000..d688422
--- /dev/null
+++ b/meta-arago-extras/recipes-devtools/uvc-gadget/files/0001-uvc-gadget-don-t-hardcode-uvc.h-path.patch
@@ -0,0 +1,26 @@
+From ae986b12f20b88de5f949062516fff4d8f887645 Mon Sep 17 00:00:00 2001
+From: Denys Dmytriyenko <denys@ti.com>
+Date: Mon, 1 May 2017 16:33:33 -0400
+Subject: [PATCH] uvc-gadget: don't hardcode uvc.h path
+
+Signed-off-by: Denys Dmytriyenko <denys@ti.com>
+---
+ uvc-gadget.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/uvc-gadget.c b/uvc-gadget.c
+index 4d59ab8..cd9e916 100644
+--- a/uvc-gadget.c
++++ b/uvc-gadget.c
+@@ -36,7 +36,7 @@
+ #include <linux/usb/video.h>
+ #include <linux/videodev2.h>
+ 
+-#include "../drivers/usb/gadget/uvc.h"
++#include "uvc.h"
+ 
+ #define clamp(val, min, max) ({                 \
+         typeof(val) __val = (val);              \
+-- 
+2.7.4
+
diff --git a/meta-arago-extras/recipes-devtools/uvc-gadget/uvc-gadget_git.bb b/meta-arago-extras/recipes-devtools/uvc-gadget/uvc-gadget_git.bb
new file mode 100644
index 0000000..1f75f15
--- /dev/null
+++ b/meta-arago-extras/recipes-devtools/uvc-gadget/uvc-gadget_git.bb
@@ -0,0 +1,22 @@
+SUMMARY = "UVC gadget userspace sample application"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://uvc-gadget.c;beginline=1;endline=18;md5=414860c3c534dc95d81da9564cfb8d2a"
+
+DEPENDS = "virtual/kernel"
+
+SRC_URI = "git://git.ideasonboard.org/uvc-gadget.git"
+SRC_URI += "file://0001-uvc-gadget-don-t-hardcode-uvc.h-path.patch"
+
+PV = "1.0+git${SRCPV}"
+SRCREV = "3c5a666f9d2eea0e0f7e9a8a0eb8bbfd7687ca13"
+
+S = "${WORKDIR}/git"
+
+do_compile () {
+	${CC} ${CFLAGS} -I${STAGING_KERNEL_DIR}/drivers/usb/gadget/function ${LDFLAGS} -o uvc-gadget uvc-gadget.c
+}
+
+do_install () {
+	install -d ${D}${bindir}
+	install -m755 uvc-gadget ${D}${bindir}
+}
-- 
2.7.4



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

* [PATCH 2/2] packagegroup-arago-test: add uvc-gadget app
  2017-05-01 20:54 [PATCH 1/2] uvc-gadget: add recipe for UVC gadget test app Denys Dmytriyenko
@ 2017-05-01 20:54 ` Denys Dmytriyenko
  0 siblings, 0 replies; 2+ messages in thread
From: Denys Dmytriyenko @ 2017-05-01 20:54 UTC (permalink / raw)
  To: meta-arago

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
---
 .../recipes-core/packagegroups/packagegroup-arago-test.bb              | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-test.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-test.bb
index eb7f41d..4af1cc4 100644
--- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-test.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-test.bb
@@ -1,6 +1,6 @@
 DESCRIPTION = "Extended task to get System Test specific apps"
 LICENSE = "MIT"
-PR = "r46"
+PR = "r47"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
@@ -45,6 +45,7 @@ ARAGO_TI_TEST = " \
     input-utils \
     cpuloadgen \
     timestamping \
+    uvc-gadget \
     "
 
 ARAGO_TI_TEST_append_ti33x = " \
-- 
2.7.4



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

end of thread, other threads:[~2017-05-01 20:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-01 20:54 [PATCH 1/2] uvc-gadget: add recipe for UVC gadget test app Denys Dmytriyenko
2017-05-01 20:54 ` [PATCH 2/2] packagegroup-arago-test: add uvc-gadget app Denys Dmytriyenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.