diff options
-rw-r--r-- | meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-contrib-test-Link-mc_nextgen_test-with-libargp-if-ne.patch | 2 | ||||
-rw-r--r-- | meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0005-Define-error_t-and-include-sys-types.h.patch | 45 | ||||
-rw-r--r-- | meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0006-Fix-build-on-32bit-arches-with-64bit-time_t.patch | 41 | ||||
-rw-r--r-- | meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0007-Do-not-use-getsubopt.patch | 2 | ||||
-rw-r--r-- | meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.20.0.bb (renamed from meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.18.1.bb) | 10 |
5 files changed, 7 insertions, 93 deletions
diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-contrib-test-Link-mc_nextgen_test-with-libargp-if-ne.patch b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-contrib-test-Link-mc_nextgen_test-with-libargp-if-ne.patch index 8033fcacf..a849d465c 100644 --- a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-contrib-test-Link-mc_nextgen_test-with-libargp-if-ne.patch +++ b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-contrib-test-Link-mc_nextgen_test-with-libargp-if-ne.patch | |||
@@ -14,7 +14,7 @@ diff --git a/contrib/test/Makefile.am b/contrib/test/Makefile.am | |||
14 | index 0188fe2..dac07f3 100644 | 14 | index 0188fe2..dac07f3 100644 |
15 | --- a/contrib/test/Makefile.am | 15 | --- a/contrib/test/Makefile.am |
16 | +++ b/contrib/test/Makefile.am | 16 | +++ b/contrib/test/Makefile.am |
17 | @@ -40,7 +40,7 @@ sdlcam_CFLAGS = -I../.. $(SDL2_CFLAGS) | 17 | @@ -42,7 +42,7 @@ sdlcam_CFLAGS = -I../.. $(SDL2_CFLAGS) |
18 | sdlcam_LDADD = ../../lib/libv4l2/libv4l2.la ../../lib/libv4lconvert/libv4lconvert.la | 18 | sdlcam_LDADD = ../../lib/libv4l2/libv4l2.la ../../lib/libv4lconvert/libv4lconvert.la |
19 | 19 | ||
20 | mc_nextgen_test_CFLAGS = $(LIBUDEV_CFLAGS) | 20 | mc_nextgen_test_CFLAGS = $(LIBUDEV_CFLAGS) |
diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0005-Define-error_t-and-include-sys-types.h.patch b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0005-Define-error_t-and-include-sys-types.h.patch deleted file mode 100644 index 57948add6..000000000 --- a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0005-Define-error_t-and-include-sys-types.h.patch +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | From 137ce23ae677b11e5483ef810751edae7bf96bb9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 30 Nov 2019 18:40:06 -0800 | ||
4 | Subject: [PATCH] Define error_t and include sys/types.h | ||
5 | |||
6 | Fix 'unknown type name' for error_t and u_int32_t. | ||
7 | u_int32_t is defined in sys/type.h | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | utils/ir-ctl/keymap.h | 4 ++++ | ||
12 | utils/keytable/keymap.h | 5 +++++ | ||
13 | 2 files changed, 9 insertions(+) | ||
14 | |||
15 | diff --git a/utils/ir-ctl/keymap.h b/utils/ir-ctl/keymap.h | ||
16 | index f2b2963..1f8a3f8 100644 | ||
17 | --- a/utils/ir-ctl/keymap.h | ||
18 | +++ b/utils/ir-ctl/keymap.h | ||
19 | @@ -2,6 +2,10 @@ | ||
20 | #ifndef __KEYMAP_H | ||
21 | #define __KEYMAP_H | ||
22 | |||
23 | +#include <sys/types.h> | ||
24 | +#ifndef error_t | ||
25 | +typedef int error_t; | ||
26 | +#endif | ||
27 | struct keymap { | ||
28 | struct keymap *next; | ||
29 | char *name; | ||
30 | diff --git a/utils/keytable/keymap.h b/utils/keytable/keymap.h | ||
31 | index f2b2963..345d55d 100644 | ||
32 | --- a/utils/keytable/keymap.h | ||
33 | +++ b/utils/keytable/keymap.h | ||
34 | @@ -2,6 +2,11 @@ | ||
35 | #ifndef __KEYMAP_H | ||
36 | #define __KEYMAP_H | ||
37 | |||
38 | +#include <sys/types.h> | ||
39 | +#ifndef error_t | ||
40 | +typedef int error_t; | ||
41 | +#endif | ||
42 | + | ||
43 | struct keymap { | ||
44 | struct keymap *next; | ||
45 | char *name; | ||
diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0006-Fix-build-on-32bit-arches-with-64bit-time_t.patch b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0006-Fix-build-on-32bit-arches-with-64bit-time_t.patch deleted file mode 100644 index a8926762e..000000000 --- a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0006-Fix-build-on-32bit-arches-with-64bit-time_t.patch +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | From b213da2d5fcc93cd24fc880c71c717d8e2ce2968 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 30 Nov 2019 18:43:21 -0800 | ||
4 | Subject: [PATCH] Fix build on 32bit arches with 64bit time_t | ||
5 | |||
6 | time element is deprecated on new input_event structure in kernel's | ||
7 | input.h [1] | ||
8 | |||
9 | [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=152194fe9c3f | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | ||
14 | utils/keytable/keytable.c | 7 ++++++- | ||
15 | 1 file changed, 6 insertions(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/utils/keytable/keytable.c b/utils/keytable/keytable.c | ||
18 | index 6cb0217..59ff1ee 100644 | ||
19 | --- a/utils/keytable/keytable.c | ||
20 | +++ b/utils/keytable/keytable.c | ||
21 | @@ -53,6 +53,11 @@ | ||
22 | |||
23 | # define N_(string) string | ||
24 | |||
25 | +#ifndef input_event_sec | ||
26 | +#define input_event_sec time.tv_sec | ||
27 | +#define input_event_usec time.tv_usec | ||
28 | +#endif | ||
29 | + | ||
30 | struct input_keymap_entry_v2 { | ||
31 | #define KEYMAP_BY_INDEX (1 << 0) | ||
32 | u_int8_t flags; | ||
33 | @@ -1533,7 +1538,7 @@ static void test_event(struct rc_device *rc_dev, int fd) | ||
34 | |||
35 | for (i = 0; i < rd / sizeof(struct input_event); i++) { | ||
36 | printf(_("%ld.%06ld: event type %s(0x%02x)"), | ||
37 | - ev[i].time.tv_sec, ev[i].time.tv_usec, | ||
38 | + ev[i].input_event_sec, ev[i].input_event_usec, | ||
39 | get_event_name(events_type, ev[i].type), ev[i].type); | ||
40 | |||
41 | switch (ev[i].type) { | ||
diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0007-Do-not-use-getsubopt.patch b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0007-Do-not-use-getsubopt.patch index ac704c72d..e3ce45d16 100644 --- a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0007-Do-not-use-getsubopt.patch +++ b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0007-Do-not-use-getsubopt.patch | |||
@@ -20,7 +20,7 @@ diff --git a/utils/v4l2-ctl/v4l2-ctl-common.cpp b/utils/v4l2-ctl/v4l2-ctl-common | |||
20 | index 651917e..cea57b7 100644 | 20 | index 651917e..cea57b7 100644 |
21 | --- a/utils/v4l2-ctl/v4l2-ctl-common.cpp | 21 | --- a/utils/v4l2-ctl/v4l2-ctl-common.cpp |
22 | +++ b/utils/v4l2-ctl/v4l2-ctl-common.cpp | 22 | +++ b/utils/v4l2-ctl/v4l2-ctl-common.cpp |
23 | @@ -782,15 +782,17 @@ static bool parse_subset(char *optarg) | 23 | @@ -785,15 +785,17 @@ static bool parse_subset(char *optarg) |
24 | 24 | ||
25 | static bool parse_next_subopt(char **subs, char **value) | 25 | static bool parse_next_subopt(char **subs, char **value) |
26 | { | 26 | { |
diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.18.1.bb b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.20.0.bb index 193335dea..7d9664622 100644 --- a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.18.1.bb +++ b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.20.0.bb | |||
@@ -20,14 +20,14 @@ SRC_URI = "http://linuxtv.org/downloads/v4l-utils/v4l-utils-${PV}.tar.bz2 \ | |||
20 | file://mediactl-pkgconfig.patch \ | 20 | file://mediactl-pkgconfig.patch \ |
21 | file://export-mediactl-headers.patch \ | 21 | file://export-mediactl-headers.patch \ |
22 | file://0002-contrib-test-Link-mc_nextgen_test-with-libargp-if-ne.patch \ | 22 | file://0002-contrib-test-Link-mc_nextgen_test-with-libargp-if-ne.patch \ |
23 | file://0005-Define-error_t-and-include-sys-types.h.patch \ | ||
24 | file://0006-Fix-build-on-32bit-arches-with-64bit-time_t.patch \ | ||
25 | file://0007-Do-not-use-getsubopt.patch \ | 23 | file://0007-Do-not-use-getsubopt.patch \ |
26 | " | 24 | " |
27 | SRC_URI[md5sum] = "ff2dd75970683be9a301ed949b3372b3" | 25 | SRC_URI[md5sum] = "46f9e2c0b2fdccd009da2f7e1aa87894" |
28 | SRC_URI[sha256sum] = "25fc42253722401f8742f04dc50a444dfa9b75378e7d09b55035bcbb44c5f342" | 26 | SRC_URI[sha256sum] = "956118713f7ccb405c55c7088a6a2490c32d54300dd9a30d8d5008c28d3726f7" |
29 | 27 | ||
30 | EXTRA_OECONF = "--disable-qv4l2 --enable-shared --with-udevdir=${base_libdir}/udev" | 28 | EXTRA_OECONF = "--disable-qv4l2 --enable-shared --with-udevdir=${base_libdir}/udev \ |
29 | --disable-v4l2-compliance-32 --disable-v4l2-ctl-32 \ | ||
30 | --with-systemdsystemunitdir=${systemd_system_unitdir}" | ||
31 | 31 | ||
32 | VIRTUAL-RUNTIME_ir-keytable-keymaps ?= "rc-keymaps" | 32 | VIRTUAL-RUNTIME_ir-keytable-keymaps ?= "rc-keymaps" |
33 | 33 | ||