diff options
author | Ismo Puustinen <ismo.puustinen@intel.com> | 2017-04-03 15:27:36 +0300 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-04-06 13:00:31 +0200 |
commit | f84a551f2d419df88b85987855fec866d9e84b4a (patch) | |
tree | 615965eaa4d9d227580b073381d8e430e9002504 /meta-oe | |
parent | e562c3adeb230bd5c99ff3d9d47eb84af99f509b (diff) | |
download | meta-openembedded-f84a551f2d419df88b85987855fec866d9e84b4a.tar.gz |
v4l-utils: update to 1.12.3.
Also add a patch which fixes building outside the source tree.
Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r-- | meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-Revert-media-ctl-Don-t-install-libmediactl-and-libv4.patch | 18 | ||||
-rw-r--r-- | meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-buildsystem-do-not-assume-building-in-source-tree.patch | 110 | ||||
-rw-r--r-- | meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.12.3.bb (renamed from meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.10.1.bb) | 5 |
3 files changed, 124 insertions, 9 deletions
diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-Revert-media-ctl-Don-t-install-libmediactl-and-libv4.patch b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-Revert-media-ctl-Don-t-install-libmediactl-and-libv4.patch index 4b3de3ccbc..74130949f6 100644 --- a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-Revert-media-ctl-Don-t-install-libmediactl-and-libv4.patch +++ b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-Revert-media-ctl-Don-t-install-libmediactl-and-libv4.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 4ee15a8a69b84526ece1180a288a37db077bcd9b Mon Sep 17 00:00:00 2001 | 1 | From 2d6bfa75b2e16b4d764f1bf00bb902fb4b5e507b Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Fri, 27 Feb 2015 21:55:36 +0000 | 3 | Date: Fri, 27 Feb 2015 21:55:36 +0000 |
4 | Subject: [PATCH] Revert "media-ctl: Don't install libmediactl and | 4 | Subject: [PATCH] Revert "media-ctl: Don't install libmediactl and |
@@ -11,23 +11,27 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
11 | Conflicts: | 11 | Conflicts: |
12 | utils/media-ctl/Makefile.am | 12 | utils/media-ctl/Makefile.am |
13 | --- | 13 | --- |
14 | utils/media-ctl/Makefile.am | 11 +++-------- | 14 | utils/media-ctl/Makefile.am | 10 +++------- |
15 | 1 file changed, 3 insertions(+), 8 deletions(-) | 15 | 1 file changed, 3 insertions(+), 7 deletions(-) |
16 | 16 | ||
17 | diff --git a/utils/media-ctl/Makefile.am b/utils/media-ctl/Makefile.am | 17 | diff --git a/utils/media-ctl/Makefile.am b/utils/media-ctl/Makefile.am |
18 | index a3931fb..fe1fea5 100644 | 18 | index ee7dcc9..d11fa2e 100644 |
19 | --- a/utils/media-ctl/Makefile.am | 19 | --- a/utils/media-ctl/Makefile.am |
20 | +++ b/utils/media-ctl/Makefile.am | 20 | +++ b/utils/media-ctl/Makefile.am |
21 | @@ -1,14 +1,9 @@ | 21 | @@ -1,8 +1,7 @@ |
22 | -noinst_LTLIBRARIES = libmediactl.la libv4l2subdev.la | 22 | -noinst_LTLIBRARIES = libmediactl.la libv4l2subdev.la |
23 | - | 23 | - |
24 | +lib_LTLIBRARIES = libmediactl.la libv4l2subdev.la | 24 | +lib_LTLIBRARIES = libmediactl.la libv4l2subdev.la |
25 | libmediactl_la_SOURCES = libmediactl.c mediactl-priv.h | 25 | libmediactl_la_SOURCES = libmediactl.c mediactl-priv.h |
26 | -libmediactl_la_CFLAGS = -static $(LIBUDEV_CFLAGS) | 26 | -libmediactl_la_CFLAGS = -static $(LIBUDEV_CFLAGS) |
27 | -libmediactl_la_LDFLAGS = -static $(LIBUDEV_LIBS) | 27 | -libmediactl_la_LDFLAGS = -static $(LIBUDEV_LIBS) |
28 | - | ||
29 | +libmediactl_la_CFLAGS = $(LIBUDEV_CFLAGS) | 28 | +libmediactl_la_CFLAGS = $(LIBUDEV_CFLAGS) |
30 | +libmediactl_la_LDFLAGS = $(LIBUDEV_LIBS) | 29 | +libmediactl_la_LDFLAGS = $(LIBUDEV_LIBS) |
30 | |||
31 | media-bus-format-names.h: ../../include/linux/media-bus-format.h | ||
32 | sed -e '/#define MEDIA_BUS_FMT/ ! d; s/.*FMT_//; /FIXED/ d; s/\t.*//; s/.*/{ \"&\", MEDIA_BUS_FMT_& },/;' \ | ||
33 | @@ -18,9 +17,6 @@ CLEANFILES = $(BUILT_SOURCES) | ||
34 | nodist_libv4l2subdev_la_SOURCES = $(BUILT_SOURCES) | ||
31 | libv4l2subdev_la_SOURCES = libv4l2subdev.c | 35 | libv4l2subdev_la_SOURCES = libv4l2subdev.c |
32 | libv4l2subdev_la_LIBADD = libmediactl.la | 36 | libv4l2subdev_la_LIBADD = libmediactl.la |
33 | -libv4l2subdev_la_CFLAGS = -static | 37 | -libv4l2subdev_la_CFLAGS = -static |
@@ -37,5 +41,5 @@ index a3931fb..fe1fea5 100644 | |||
37 | noinst_HEADERS = mediactl.h v4l2subdev.h | 41 | noinst_HEADERS = mediactl.h v4l2subdev.h |
38 | 42 | ||
39 | -- | 43 | -- |
40 | 2.1.4 | 44 | 2.9.3 |
41 | 45 | ||
diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-buildsystem-do-not-assume-building-in-source-tree.patch b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-buildsystem-do-not-assume-building-in-source-tree.patch new file mode 100644 index 0000000000..54161f90fc --- /dev/null +++ b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-buildsystem-do-not-assume-building-in-source-tree.patch | |||
@@ -0,0 +1,110 @@ | |||
1 | From 806822f5acb756d5acda0f9063c84b28b38b3ffb Mon Sep 17 00:00:00 2001 | ||
2 | From: Ismo Puustinen <ismo.puustinen@intel.com> | ||
3 | Date: Mon, 3 Apr 2017 13:23:38 +0300 | ||
4 | Subject: [PATCH v4l-utils] buildsystem: do not assume building in source tree. | ||
5 | |||
6 | Use $(top_srcdir) as reference for include paths and buildtime scripts. | ||
7 | Otherwise compilation outside of project root directory will fail | ||
8 | because header and script paths are wrong. | ||
9 | |||
10 | To reproduce: mkdir b; cd b; ../configure; make | ||
11 | |||
12 | Upstream-status: Accepted [https://git.linuxtv.org//v4l-utils.git/commit/?id=bd98c9a99bffc8d44c54859345e4dfee0ada4275] | ||
13 | |||
14 | Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com> | ||
15 | --- | ||
16 | utils/cec-compliance/Makefile.am | 2 +- | ||
17 | utils/cec-ctl/Makefile.am | 2 +- | ||
18 | utils/cec-follower/Makefile.am | 4 ++-- | ||
19 | utils/qv4l2/Makefile.am | 2 +- | ||
20 | utils/v4l2-compliance/Makefile.am | 2 +- | ||
21 | utils/v4l2-ctl/Makefile.am | 2 +- | ||
22 | 6 files changed, 7 insertions(+), 7 deletions(-) | ||
23 | |||
24 | diff --git a/utils/cec-compliance/Makefile.am b/utils/cec-compliance/Makefile.am | ||
25 | index ec5de51..8331aa0 100644 | ||
26 | --- a/utils/cec-compliance/Makefile.am | ||
27 | +++ b/utils/cec-compliance/Makefile.am | ||
28 | @@ -7,7 +7,7 @@ cec_compliance_LDFLAGS = -lrt | ||
29 | cec-compliance.cpp: cec-table.h | ||
30 | |||
31 | cec-table.h: ../cec-ctl/msg2ctl.pl ../../include/linux/cec.h ../../include/linux/cec-funcs.h | ||
32 | - ../cec-ctl/msg2ctl.pl 2 ../../include/linux/cec.h ../../include/linux/cec-funcs.h >$@ | ||
33 | + $(top_srcdir)/utils/cec-ctl/msg2ctl.pl 2 $(top_srcdir)/include/linux/cec.h $(top_srcdir)/include/linux/cec-funcs.h >$@ | ||
34 | |||
35 | cec-compliance.cpp: version.h | ||
36 | |||
37 | diff --git a/utils/cec-ctl/Makefile.am b/utils/cec-ctl/Makefile.am | ||
38 | index 0a7ef22..6afb6c9 100644 | ||
39 | --- a/utils/cec-ctl/Makefile.am | ||
40 | +++ b/utils/cec-ctl/Makefile.am | ||
41 | @@ -7,7 +7,7 @@ cec_ctl_LDFLAGS = -lrt | ||
42 | cec-ctl.cpp: cec-ctl-gen.h | ||
43 | |||
44 | cec-ctl-gen.h: msg2ctl.pl ../../include/linux/cec.h ../../include/linux/cec-funcs.h | ||
45 | - ./msg2ctl.pl 0 ../../include/linux/cec.h ../../include/linux/cec-funcs.h >$@ | ||
46 | + $(top_srcdir)/utils/cec-ctl/msg2ctl.pl 0 $(top_srcdir)/include/linux/cec.h $(top_srcdir)/include/linux/cec-funcs.h >$@ | ||
47 | |||
48 | clean-local: | ||
49 | -rm -vf cec-ctl-gen.h | ||
50 | diff --git a/utils/cec-follower/Makefile.am b/utils/cec-follower/Makefile.am | ||
51 | index 538edb2..fdbf3d9 100644 | ||
52 | --- a/utils/cec-follower/Makefile.am | ||
53 | +++ b/utils/cec-follower/Makefile.am | ||
54 | @@ -7,12 +7,12 @@ cec_follower_LDFLAGS = -lrt | ||
55 | cec-log.cpp: cec-log.h | ||
56 | |||
57 | cec-log.h: ../cec-ctl/msg2ctl.pl ../../include/linux/cec.h ../../include/linux/cec-funcs.h | ||
58 | - ../cec-ctl/msg2ctl.pl 1 ../../include/linux/cec.h ../../include/linux/cec-funcs.h >$@ | ||
59 | + $(top_srcdir)/utils/cec-ctl/msg2ctl.pl 1 $(top_srcdir)/include/linux/cec.h $(top_srcdir)/include/linux/cec-funcs.h >$@ | ||
60 | |||
61 | cec-follower.cpp: cec-table.h version.h | ||
62 | |||
63 | cec-table.h: ../cec-ctl/msg2ctl.pl ../../include/linux/cec.h ../../include/linux/cec-funcs.h | ||
64 | - ../cec-ctl/msg2ctl.pl 2 ../../include/linux/cec.h ../../include/linux/cec-funcs.h >$@ | ||
65 | + $(top_srcdir)/utils/cec-ctl/msg2ctl.pl 2 $(top_srcdir)/include/linux/cec.h $(top_srcdir)/include/linux/cec-funcs.h >$@ | ||
66 | |||
67 | version.h: | ||
68 | @if git rev-parse HEAD >/dev/null 2>&1; then \ | ||
69 | diff --git a/utils/qv4l2/Makefile.am b/utils/qv4l2/Makefile.am | ||
70 | index fd58486..ccd1a2a 100644 | ||
71 | --- a/utils/qv4l2/Makefile.am | ||
72 | +++ b/utils/qv4l2/Makefile.am | ||
73 | @@ -8,7 +8,7 @@ qv4l2_SOURCES = qv4l2.cpp general-tab.cpp ctrl-tab.cpp vbi-tab.cpp capture-win.c | ||
74 | nodist_qv4l2_SOURCES = moc_qv4l2.cpp moc_general-tab.cpp moc_capture-win.cpp moc_vbi-tab.cpp qrc_qv4l2.cpp | ||
75 | qv4l2_LDADD = ../../lib/libv4l2/libv4l2.la ../../lib/libv4lconvert/libv4lconvert.la \ | ||
76 | ../libv4l2util/libv4l2util.la ../libmedia_dev/libmedia_dev.la | ||
77 | -qv4l2_CPPFLAGS = -I../common | ||
78 | +qv4l2_CPPFLAGS = -I$(top_srcdir)/utils/common | ||
79 | |||
80 | if WITH_QTGL | ||
81 | qv4l2_CPPFLAGS += $(QTGL_CFLAGS) | ||
82 | diff --git a/utils/v4l2-compliance/Makefile.am b/utils/v4l2-compliance/Makefile.am | ||
83 | index 03db8df..18b9892 100644 | ||
84 | --- a/utils/v4l2-compliance/Makefile.am | ||
85 | +++ b/utils/v4l2-compliance/Makefile.am | ||
86 | @@ -5,7 +5,7 @@ DEFS := | ||
87 | v4l2_compliance_SOURCES = v4l2-compliance.cpp v4l2-test-debug.cpp v4l2-test-input-output.cpp \ | ||
88 | v4l2-test-controls.cpp v4l2-test-io-config.cpp v4l2-test-formats.cpp v4l2-test-buffers.cpp \ | ||
89 | v4l2-test-codecs.cpp v4l2-test-colors.cpp v4l2-compliance.h | ||
90 | -v4l2_compliance_CPPFLAGS = -I../common | ||
91 | +v4l2_compliance_CPPFLAGS = -I$(top_srcdir)/utils/common | ||
92 | |||
93 | if WITH_V4L2_COMPLIANCE_LIBV4L | ||
94 | v4l2_compliance_LDADD = ../../lib/libv4l2/libv4l2.la ../../lib/libv4lconvert/libv4lconvert.la -lrt -lpthread | ||
95 | diff --git a/utils/v4l2-ctl/Makefile.am b/utils/v4l2-ctl/Makefile.am | ||
96 | index 955647d..825e53f 100644 | ||
97 | --- a/utils/v4l2-ctl/Makefile.am | ||
98 | +++ b/utils/v4l2-ctl/Makefile.am | ||
99 | @@ -7,7 +7,7 @@ v4l2_ctl_SOURCES = v4l2-ctl.cpp v4l2-ctl.h v4l2-ctl-common.cpp v4l2-ctl-tuner.cp | ||
100 | v4l2-ctl-overlay.cpp v4l2-ctl-vbi.cpp v4l2-ctl-selection.cpp v4l2-ctl-misc.cpp \ | ||
101 | v4l2-ctl-streaming.cpp v4l2-ctl-sdr.cpp v4l2-ctl-edid.cpp v4l2-ctl-modes.cpp \ | ||
102 | v4l2-tpg-colors.c v4l2-tpg-core.c v4l-stream.c | ||
103 | -v4l2_ctl_CPPFLAGS = -I../common | ||
104 | +v4l2_ctl_CPPFLAGS = -I$(top_srcdir)/utils/common | ||
105 | |||
106 | if WITH_V4L2_CTL_LIBV4L | ||
107 | v4l2_ctl_LDADD = ../../lib/libv4l2/libv4l2.la ../../lib/libv4lconvert/libv4lconvert.la -lrt -lpthread | ||
108 | -- | ||
109 | 2.9.3 | ||
110 | |||
diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.10.1.bb b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.12.3.bb index 4d87b50dc1..42da5cc093 100644 --- a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.10.1.bb +++ b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.12.3.bb | |||
@@ -15,11 +15,12 @@ PACKAGECONFIG[media-ctl] = "--enable-v4l-utils,--disable-v4l-utils,," | |||
15 | 15 | ||
16 | SRC_URI = "http://linuxtv.org/downloads/v4l-utils/v4l-utils-${PV}.tar.bz2 \ | 16 | SRC_URI = "http://linuxtv.org/downloads/v4l-utils/v4l-utils-${PV}.tar.bz2 \ |
17 | file://0001-Revert-media-ctl-Don-t-install-libmediactl-and-libv4.patch \ | 17 | file://0001-Revert-media-ctl-Don-t-install-libmediactl-and-libv4.patch \ |
18 | file://0001-buildsystem-do-not-assume-building-in-source-tree.patch \ | ||
18 | file://mediactl-pkgconfig.patch \ | 19 | file://mediactl-pkgconfig.patch \ |
19 | file://export-mediactl-headers.patch \ | 20 | file://export-mediactl-headers.patch \ |
20 | " | 21 | " |
21 | SRC_URI[md5sum] = "936c9c58343840e91294e4dcec7dc05f" | 22 | SRC_URI[md5sum] = "89e1ed6c69c94e0489dc0a638c7841aa" |
22 | SRC_URI[sha256sum] = "6147ccc29fe7dd3c5c3994d613c4f2a099bac8b44694a96e5cf4d7caca8336c0" | 23 | SRC_URI[sha256sum] = "5a47dd6f0e7dfe902d94605c01d385a4a4e87583ff5856d6f181900ea81cf46e" |
23 | 24 | ||
24 | EXTRA_OECONF = "--disable-qv4l2 --enable-shared --with-udevdir=${base_libdir}/udev" | 25 | EXTRA_OECONF = "--disable-qv4l2 --enable-shared --with-udevdir=${base_libdir}/udev" |
25 | 26 | ||