summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Estevam <festevam@denx.de>2024-01-12 09:55:53 -0300
committerKhem Raj <raj.khem@gmail.com>2024-01-12 08:51:11 -0800
commit9389d63fdddcab400cb0b243b74d47bf665aba18 (patch)
treedee70f686825e329b8c83ba950c9a43817ccd381
parent8fce02300e3472532b280a0ef2f8dbcf9078adf7 (diff)
downloadmeta-openembedded-9389d63fdddcab400cb0b243b74d47bf665aba18.tar.gz
v4l-utils: Update to 1.26.1
Update to 1.26.1. Remove the Makefile.am patches as they no longer apply due to the switch to Meson. Backport a fix that prevents installing 50-rc_keymap.conf in systems without systemd. Signed-off-by: Fabio Estevam <festevam@denx.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-Revert-media-ctl-Don-t-install-libmediactl-and-libv4.patch46
-rw-r--r--meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-keytable-meson-Restrict-the-installation-of-50-rc_ke.patch46
-rw-r--r--meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-original-patch-mediactl-pkgconfig.patch23
-rw-r--r--meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0003-original-patch-export-mediactl-headers.patch26
-rw-r--r--meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.26.1.bb (renamed from meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.24.1.bb)28
5 files changed, 58 insertions, 111 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
deleted file mode 100644
index 52f0cd3388..0000000000
--- a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-Revert-media-ctl-Don-t-install-libmediactl-and-libv4.patch
+++ /dev/null
@@ -1,46 +0,0 @@
1From 0d5c0e9a75eca43667b0e29155b635e50622b66a Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 27 Feb 2015 21:55:36 +0000
4Subject: [PATCH] Revert "media-ctl: Don't install libmediactl and
5
6 libv4l2subdev"
7
8This reverts commit 0911dce53b08b0df3066be2c75f67e8a314d8729.
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11
12Conflicts:
13 utils/media-ctl/Makefile.am
14
15---
16Upstream-Status: Pending
17
18 utils/media-ctl/Makefile.am | 10 +++-------
19 1 file changed, 3 insertions(+), 7 deletions(-)
20
21diff --git a/utils/media-ctl/Makefile.am b/utils/media-ctl/Makefile.am
22index c48c8d6..e255e16 100644
23--- a/utils/media-ctl/Makefile.am
24+++ b/utils/media-ctl/Makefile.am
25@@ -1,8 +1,7 @@
26-noinst_LTLIBRARIES = libmediactl.la libv4l2subdev.la
27-
28+lib_LTLIBRARIES = libmediactl.la libv4l2subdev.la
29 libmediactl_la_SOURCES = libmediactl.c mediactl-priv.h
30-libmediactl_la_CFLAGS = -static $(LIBUDEV_CFLAGS)
31-libmediactl_la_LDFLAGS = -static $(LIBUDEV_LIBS)
32+libmediactl_la_CFLAGS = $(LIBUDEV_CFLAGS)
33+libmediactl_la_LDFLAGS = $(LIBUDEV_LIBS)
34
35 media-bus-format-names.h: ../../include/linux/media-bus-format.h
36 $(AM_V_GEN) sed -e '/#define MEDIA_BUS_FMT/ ! d; s/.*FMT_//; /FIXED/ d; s/\t.*//; s/.*/{ \"&\", MEDIA_BUS_FMT_& },/;' \
37@@ -18,9 +17,6 @@ CLEANFILES = $(BUILT_SOURCES)
38 nodist_libv4l2subdev_la_SOURCES = $(BUILT_SOURCES)
39 libv4l2subdev_la_SOURCES = libv4l2subdev.c
40 libv4l2subdev_la_LIBADD = libmediactl.la
41-libv4l2subdev_la_CFLAGS = -static
42-libv4l2subdev_la_LDFLAGS = -static
43-
44 mediactl_includedir=$(includedir)/mediactl
45 noinst_HEADERS = mediactl.h v4l2subdev.h
46
diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-keytable-meson-Restrict-the-installation-of-50-rc_ke.patch b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-keytable-meson-Restrict-the-installation-of-50-rc_ke.patch
new file mode 100644
index 0000000000..64c01e4977
--- /dev/null
+++ b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-keytable-meson-Restrict-the-installation-of-50-rc_ke.patch
@@ -0,0 +1,46 @@
1From 502c0302827cec3d2b2a69fb25189646685ef2ff Mon Sep 17 00:00:00 2001
2From: Fabio Estevam <festevam@denx.de>
3Date: Fri, 12 Jan 2024 00:17:14 -0300
4Subject: [PATCH] keytable: meson: Restrict the installation of
5 50-rc_keymap.conf
6
7Currently, meson tries to install 50-rc_keymap.conf even if systemd
8is not used.
9
10Commit 01f2c6c58e6f ("keytable: restrict installation of 50-rc_keymap.conf"),
11only allowed 50-rc_keymap.conf to be installed when both BPF and systemd
12were used.
13
14Apply the same logic in meson to fix the problem.
15
16Signed-off-by: Fabio Estevam <festevam@denx.de>
17Signed-off-by: Sean Young <sean@mess.org>
18Upstream-Status: Backport [https://git.linuxtv.org/v4l-utils.git/commit/?id=a21924ec424c4744af6f2a794e0677eba35dd168]
19---
20 utils/keytable/meson.build | 4 ++++
21 1 file changed, 4 insertions(+)
22
23diff --git a/utils/keytable/meson.build b/utils/keytable/meson.build
24index 4130a4bea514..76ce329eae8e 100644
25--- a/utils/keytable/meson.build
26+++ b/utils/keytable/meson.build
27@@ -69,6 +69,8 @@ ir_keytable_udev_rules = files(
28 install_data(ir_keytable_udev_rules,
29 install_dir : ir_keytable_system_dir / 'rules.d')
30
31+if ir_bpf_enabled
32+if dep_systemd.found()
33 if have_udevdsyscallfilter
34 ir_keytable_systemd_files = files(
35 '50-rc_keymap.conf',
36@@ -76,6 +78,8 @@ if have_udevdsyscallfilter
37 install_data(ir_keytable_systemd_files,
38 install_dir : systemd_systemdir / 'systemd-udevd.service.d')
39 endif
40+endif
41+endif
42
43 # Install non-existing directory to create empty directory structure
44 # See: https://github.com/mesonbuild/meson/issues/2904
45--
462.34.1
diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-original-patch-mediactl-pkgconfig.patch b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-original-patch-mediactl-pkgconfig.patch
deleted file mode 100644
index d52475974f..0000000000
--- a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-original-patch-mediactl-pkgconfig.patch
+++ /dev/null
@@ -1,23 +0,0 @@
1From 320b8378ee30eb5e0fe83a8b397f822f2f88a4c1 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 1 Mar 2015 22:25:07 +0000
4Subject: [PATCH] %% original patch: mediactl-pkgconfig.patch
5
6---
7Upstream-Status: Pending
8
9 utils/media-ctl/Makefile.am | 1 +
10 1 file changed, 1 insertion(+)
11
12diff --git a/utils/media-ctl/Makefile.am b/utils/media-ctl/Makefile.am
13index e255e16..ff7b417 100644
14--- a/utils/media-ctl/Makefile.am
15+++ b/utils/media-ctl/Makefile.am
16@@ -20,6 +20,7 @@ libv4l2subdev_la_LIBADD = libmediactl.la
17 mediactl_includedir=$(includedir)/mediactl
18 noinst_HEADERS = mediactl.h v4l2subdev.h
19
20+pkgconfig_DATA = libmediactl.pc
21 bin_PROGRAMS = media-ctl
22 media_ctl_SOURCES = media-ctl.c options.c options.h tools.h
23 media_ctl_LDADD = libmediactl.la libv4l2subdev.la
diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0003-original-patch-export-mediactl-headers.patch b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0003-original-patch-export-mediactl-headers.patch
deleted file mode 100644
index f6fcee92ea..0000000000
--- a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0003-original-patch-export-mediactl-headers.patch
+++ /dev/null
@@ -1,26 +0,0 @@
1From f7109d6b2fcb291824d795071c04a492d9fbc45b Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 1 Mar 2015 22:25:07 +0000
4Subject: [PATCH] %% original patch: export-mediactl-headers.patch
5
6---
7Upstream-Status: Pending
8
9 utils/media-ctl/Makefile.am | 4 ++--
10 1 file changed, 2 insertions(+), 2 deletions(-)
11
12diff --git a/utils/media-ctl/Makefile.am b/utils/media-ctl/Makefile.am
13index ff7b417..6ce656f 100644
14--- a/utils/media-ctl/Makefile.am
15+++ b/utils/media-ctl/Makefile.am
16@@ -17,8 +17,8 @@ CLEANFILES = $(BUILT_SOURCES)
17 nodist_libv4l2subdev_la_SOURCES = $(BUILT_SOURCES)
18 libv4l2subdev_la_SOURCES = libv4l2subdev.c
19 libv4l2subdev_la_LIBADD = libmediactl.la
20-mediactl_includedir=$(includedir)/mediactl
21-noinst_HEADERS = mediactl.h v4l2subdev.h
22+otherincludedir = $(includedir)/mediactl
23+otherinclude_HEADERS = mediactl.h v4l2subdev.h
24
25 pkgconfig_DATA = libmediactl.pc
26 bin_PROGRAMS = media-ctl
diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.24.1.bb b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.26.1.bb
index f314d9b6ae..4ae1a18c9e 100644
--- a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.24.1.bb
+++ b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.26.1.bb
@@ -18,34 +18,30 @@ LDFLAGS:append = " -pthread"
18# Needs further investigation 18# Needs further investigation
19GLIBC_64BIT_TIME_FLAGS = "" 19GLIBC_64BIT_TIME_FLAGS = ""
20 20
21inherit autotools gettext pkgconfig 21inherit meson gettext pkgconfig
22 22
23PACKAGECONFIG ??= "media-ctl" 23PACKAGECONFIG ??= ""
24PACKAGECONFIG[media-ctl] = "--enable-v4l-utils,--disable-v4l-utils,," 24PACKAGECONFIG[qv4l2] = ",-Dqv4l2=disabled"
25PACKAGECONFIG[qv4l2] = ",--disable-qv4l2" 25PACKAGECONFIG[qvidcap] = ",-Dqvidcap=disabled"
26PACKAGECONFIG[qvidcap] = ",--disable-qvidcap" 26PACKAGECONFIG[v4l2-tracer] = ",-Dv4l2-tracer=disabled,json-c"
27PACKAGECONFIG[v4l2-tracer] = ",--disable-v4l2-tracer,json-c"
28 27
29SRC_URI = "\ 28SRC_URI = "\
30 git://git.linuxtv.org/v4l-utils.git;protocol=https;branch=stable-1.24 \ 29 git://git.linuxtv.org/v4l-utils.git;protocol=https;branch=stable-1.26 \
31 file://0001-Revert-media-ctl-Don-t-install-libmediactl-and-libv4.patch \ 30 file://0001-keytable-meson-Restrict-the-installation-of-50-rc_ke.patch \
32 file://0002-original-patch-mediactl-pkgconfig.patch \
33 file://0003-original-patch-export-mediactl-headers.patch \
34 file://0004-Do-not-use-getsubopt.patch \ 31 file://0004-Do-not-use-getsubopt.patch \
35" 32"
36 33
37SRCREV = "8799081b143627c9c09dea0c60ad3d1cc17cc848" 34SRCREV = "4aee01a027923cab1e40969f56f8ba58d3e6c0d1"
38 35
39PV .= "+git${SRCPV}" 36PV .= "+git${SRCPV}"
40 37
41S = "${WORKDIR}/git" 38S = "${WORKDIR}/git"
42 39
43do_configure:prepend() { 40EXTRA_OEMESON = "-Dudevdir=${base_libdir}/udev -Dv4l2-compliance-32=false -Dv4l2-ctl-32=false"
44 cd ${S}; ./bootstrap.sh; cd -
45}
46 41
47EXTRA_OECONF = "--enable-shared --with-udevdir=${base_libdir}/udev \ 42# Disable the erroneous installation of gconv-modules that would break glib
48 --disable-v4l2-compliance-32 --disable-v4l2-ctl-32" 43# like it is done in Debian and ArchLinux.
44EXTRA_OEMESON += "-Dgconv=disabled"
49 45
50VIRTUAL-RUNTIME_ir-keytable-keymaps ?= "rc-keymaps" 46VIRTUAL-RUNTIME_ir-keytable-keymaps ?= "rc-keymaps"
51 47