summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-multimedia/v4l2apps/v4l-utils
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-multimedia/v4l2apps/v4l-utils')
-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/0001-media-ctl-Install-media-ctl-header-and-library-files.patch78
-rw-r--r--meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-media-ctl-Install-media-ctl-pkg-config-files.patch49
3 files changed, 127 insertions, 46 deletions
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
deleted file mode 100644
index 64c01e4977..0000000000
--- a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-keytable-meson-Restrict-the-installation-of-50-rc_ke.patch
+++ /dev/null
@@ -1,46 +0,0 @@
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/0001-media-ctl-Install-media-ctl-header-and-library-files.patch b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-media-ctl-Install-media-ctl-header-and-library-files.patch
new file mode 100644
index 0000000000..6c946d8c48
--- /dev/null
+++ b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-media-ctl-Install-media-ctl-header-and-library-files.patch
@@ -0,0 +1,78 @@
1From 3867fcfa4389c7fa271705f1fd1d4bfb74bc1bd1 Mon Sep 17 00:00:00 2001
2From: Neel Gandhi <neel.gandhi@amd.com>
3Date: Wed, 5 Jun 2024 13:51:36 +0530
4Subject: [PATCH] media-ctl: Install media-ctl header and library files
5
6Install mediactl and v4l2subdev header and library
7files, which may be required by 3rd party applications
8to populate and control v4l2subdev device node tree
9
10Install of these files was removed in upstream commit
110911dce53b08b0df3066be2c75f67e8a314d8729.
12
13Upstream-Status: Denied
14
15v4l-utils maintainers do not promise a stable API for this library, and
16do not currently have the time to do so. So exporting the API in this
17way is fine, as long as we understand that it will change and users of
18the API will need to adapt over time.
19
20Signed-off-by: Neel Gandhi <neel.gandhi@amd.com>
21Signed-off-by: Mark Hatle <mark.hatle@amd.com>
22---
23 utils/media-ctl/meson.build | 28 +++++++++++++++++++++-------
24 1 file changed, 21 insertions(+), 7 deletions(-)
25
26diff --git a/utils/media-ctl/meson.build b/utils/media-ctl/meson.build
27index 3a7b0c9a..40669b4c 100644
28--- a/utils/media-ctl/meson.build
29+++ b/utils/media-ctl/meson.build
30@@ -3,14 +3,24 @@ libmediactl_sources = files(
31 'mediactl-priv.h',
32 )
33
34+libmediactl_api = files(
35+ 'mediactl.h',
36+ 'v4l2subdev.h',
37+)
38+
39+install_headers(libmediactl_api, subdir: 'mediactl')
40+
41 libmediactl_deps = [
42 dep_libudev,
43 ]
44
45-libmediactl = static_library('mediactl',
46- libmediactl_sources,
47- dependencies : libmediactl_deps,
48- include_directories : v4l2_utils_incdir)
49+libmediactl = library('mediactl',
50+ libmediactl_sources,
51+ soversion: '0',
52+ version: '0.0.0',
53+ install : true,
54+ dependencies : libmediactl_deps,
55+ include_directories : v4l2_utils_incdir)
56
57 dep_libmediactl = declare_dependency(link_with : libmediactl)
58
59@@ -18,9 +28,13 @@ libv4l2subdev_sources = files('libv4l2subdev.c')
60 libv4l2subdev_sources += media_bus_format_names_h
61 libv4l2subdev_sources += media_bus_format_codes_h
62
63-libv4l2subdev = static_library('v4l2subdev',
64- libv4l2subdev_sources,
65- include_directories : v4l2_utils_incdir)
66+libv4l2subdev = library('v4l2subdev',
67+ libv4l2subdev_sources,
68+ soversion: '0',
69+ version: '0.0.0',
70+ install : true,
71+ dependencies : dep_libmediactl,
72+ include_directories : v4l2_utils_incdir)
73
74 dep_libv4l2subdev = declare_dependency(link_with : libv4l2subdev)
75
76--
772.34.1
78
diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-media-ctl-Install-media-ctl-pkg-config-files.patch b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-media-ctl-Install-media-ctl-pkg-config-files.patch
new file mode 100644
index 0000000000..8a009ae806
--- /dev/null
+++ b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-media-ctl-Install-media-ctl-pkg-config-files.patch
@@ -0,0 +1,49 @@
1From a422ddf7f8805d34ff1fbb46d335993c9cd05ead Mon Sep 17 00:00:00 2001
2From: Einar Jon Gunnarsson <tolvupostur@gmail.com>
3Date: Fri, 10 May 2024 11:56:17 +0200
4Subject: [PATCH] media-ctl: Install media-ctl pkg-config files
5
6libv4l2subdev/libmediactl can not be used in projects without the
7pkg-config files. This adds them as well.
8
9Upstream-Status: Denied
10
11This is an add-on to the previous patch:
120001-media-ctl-Install-media-ctl-header-and-library-files.patch
13so same restrictions apply.
14
15Signed-off-by: Einar Jon Gunnarsson <tolvupostur@gmail.com>
16---
17 utils/media-ctl/meson.build | 12 ++++++++++++
18 1 file changed, 12 insertions(+)
19
20diff --git a/utils/media-ctl/meson.build b/utils/media-ctl/meson.build
21index 40669b4c..6feba1af 100644
22--- a/utils/media-ctl/meson.build
23+++ b/utils/media-ctl/meson.build
24@@ -38,6 +38,12 @@ libv4l2subdev = library('v4l2subdev',
25
26 dep_libv4l2subdev = declare_dependency(link_with : libv4l2subdev)
27
28+pkg.generate(
29+ libv4l2subdev,
30+ name : 'libv4l2subdev',
31+ version : meson.project_version(),
32+ description : 'v4l2 subdev library')
33+
34 media_ctl_sources = files(
35 'media-ctl.c',
36 'options.c',
37@@ -55,3 +61,9 @@ media_ctl = executable('media-ctl',
38 dependencies : media_ctl_deps,
39 install : true,
40 include_directories : v4l2_utils_incdir)
41+
42+pkg.generate(
43+ libmediactl,
44+ name : 'libmediactl',
45+ version : meson.project_version(),
46+ description : 'v4l2 mediactl library')
47--
482.43.5
49