diff options
Diffstat (limited to 'meta-oe/recipes-multimedia/v4l2apps')
-rw-r--r-- | meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-keytable-meson-Restrict-the-installation-of-50-rc_ke.patch | 46 | ||||
-rw-r--r-- | meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-media-ctl-Install-media-ctl-header-and-library-files.patch | 78 | ||||
-rw-r--r-- | meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-media-ctl-Install-media-ctl-pkg-config-files.patch | 49 | ||||
-rw-r--r-- | meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.28.1.bb (renamed from meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.26.1.bb) | 10 | ||||
-rw-r--r-- | meta-oe/recipes-multimedia/v4l2apps/yavta_git.bb | 20 |
5 files changed, 137 insertions, 66 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 @@ | |||
1 | From 502c0302827cec3d2b2a69fb25189646685ef2ff Mon Sep 17 00:00:00 2001 | ||
2 | From: Fabio Estevam <festevam@denx.de> | ||
3 | Date: Fri, 12 Jan 2024 00:17:14 -0300 | ||
4 | Subject: [PATCH] keytable: meson: Restrict the installation of | ||
5 | 50-rc_keymap.conf | ||
6 | |||
7 | Currently, meson tries to install 50-rc_keymap.conf even if systemd | ||
8 | is not used. | ||
9 | |||
10 | Commit 01f2c6c58e6f ("keytable: restrict installation of 50-rc_keymap.conf"), | ||
11 | only allowed 50-rc_keymap.conf to be installed when both BPF and systemd | ||
12 | were used. | ||
13 | |||
14 | Apply the same logic in meson to fix the problem. | ||
15 | |||
16 | Signed-off-by: Fabio Estevam <festevam@denx.de> | ||
17 | Signed-off-by: Sean Young <sean@mess.org> | ||
18 | Upstream-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 | |||
23 | diff --git a/utils/keytable/meson.build b/utils/keytable/meson.build | ||
24 | index 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 | -- | ||
46 | 2.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 @@ | |||
1 | From 3867fcfa4389c7fa271705f1fd1d4bfb74bc1bd1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Neel Gandhi <neel.gandhi@amd.com> | ||
3 | Date: Wed, 5 Jun 2024 13:51:36 +0530 | ||
4 | Subject: [PATCH] media-ctl: Install media-ctl header and library files | ||
5 | |||
6 | Install mediactl and v4l2subdev header and library | ||
7 | files, which may be required by 3rd party applications | ||
8 | to populate and control v4l2subdev device node tree | ||
9 | |||
10 | Install of these files was removed in upstream commit | ||
11 | 0911dce53b08b0df3066be2c75f67e8a314d8729. | ||
12 | |||
13 | Upstream-Status: Denied | ||
14 | |||
15 | v4l-utils maintainers do not promise a stable API for this library, and | ||
16 | do not currently have the time to do so. So exporting the API in this | ||
17 | way is fine, as long as we understand that it will change and users of | ||
18 | the API will need to adapt over time. | ||
19 | |||
20 | Signed-off-by: Neel Gandhi <neel.gandhi@amd.com> | ||
21 | Signed-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 | |||
26 | diff --git a/utils/media-ctl/meson.build b/utils/media-ctl/meson.build | ||
27 | index 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 | -- | ||
77 | 2.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 @@ | |||
1 | From a422ddf7f8805d34ff1fbb46d335993c9cd05ead Mon Sep 17 00:00:00 2001 | ||
2 | From: Einar Jon Gunnarsson <tolvupostur@gmail.com> | ||
3 | Date: Fri, 10 May 2024 11:56:17 +0200 | ||
4 | Subject: [PATCH] media-ctl: Install media-ctl pkg-config files | ||
5 | |||
6 | libv4l2subdev/libmediactl can not be used in projects without the | ||
7 | pkg-config files. This adds them as well. | ||
8 | |||
9 | Upstream-Status: Denied | ||
10 | |||
11 | This is an add-on to the previous patch: | ||
12 | 0001-media-ctl-Install-media-ctl-header-and-library-files.patch | ||
13 | so same restrictions apply. | ||
14 | |||
15 | Signed-off-by: Einar Jon Gunnarsson <tolvupostur@gmail.com> | ||
16 | --- | ||
17 | utils/media-ctl/meson.build | 12 ++++++++++++ | ||
18 | 1 file changed, 12 insertions(+) | ||
19 | |||
20 | diff --git a/utils/media-ctl/meson.build b/utils/media-ctl/meson.build | ||
21 | index 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 | -- | ||
48 | 2.43.5 | ||
49 | |||
diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.26.1.bb b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.28.1.bb index 52759ef18e..0a3b5d28b6 100644 --- a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.26.1.bb +++ b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.28.1.bb | |||
@@ -26,15 +26,15 @@ PACKAGECONFIG[qvidcap] = ",-Dqvidcap=disabled" | |||
26 | PACKAGECONFIG[v4l2-tracer] = ",-Dv4l2-tracer=disabled,json-c" | 26 | PACKAGECONFIG[v4l2-tracer] = ",-Dv4l2-tracer=disabled,json-c" |
27 | 27 | ||
28 | SRC_URI = "\ | 28 | SRC_URI = "\ |
29 | git://git.linuxtv.org/v4l-utils.git;protocol=https;branch=stable-1.26 \ | 29 | git://git.linuxtv.org/v4l-utils.git;protocol=https;branch=stable-1.28 \ |
30 | file://0001-keytable-meson-Restrict-the-installation-of-50-rc_ke.patch \ | 30 | file://0001-media-ctl-Install-media-ctl-header-and-library-files.patch \ |
31 | file://0002-media-ctl-Install-media-ctl-pkg-config-files.patch \ | ||
31 | " | 32 | " |
32 | 33 | ||
33 | SRCREV = "4aee01a027923cab1e40969f56f8ba58d3e6c0d1" | 34 | SRCREV = "fc15e229d9d337e46d730f00647821adbbd58548" |
34 | 35 | ||
35 | PV .= "+git" | ||
36 | 36 | ||
37 | S = "${WORKDIR}/git" | 37 | UPSTREAM_CHECK_GITTAGREGEX = "v4l-utils-(?P<pver>\d+(\.\d+)+)" |
38 | 38 | ||
39 | EXTRA_OEMESON = "-Dudevdir=${base_libdir}/udev -Dv4l2-compliance-32=false -Dv4l2-ctl-32=false" | 39 | EXTRA_OEMESON = "-Dudevdir=${base_libdir}/udev -Dv4l2-compliance-32=false -Dv4l2-ctl-32=false" |
40 | 40 | ||
diff --git a/meta-oe/recipes-multimedia/v4l2apps/yavta_git.bb b/meta-oe/recipes-multimedia/v4l2apps/yavta_git.bb index 3069528301..87dc7a7be6 100644 --- a/meta-oe/recipes-multimedia/v4l2apps/yavta_git.bb +++ b/meta-oe/recipes-multimedia/v4l2apps/yavta_git.bb | |||
@@ -2,23 +2,13 @@ SUMMARY = "Yet Another V4L2 Test Application" | |||
2 | LICENSE = "GPL-2.0-only" | 2 | LICENSE = "GPL-2.0-only" |
3 | LIC_FILES_CHKSUM = "file://COPYING.GPL;md5=751419260aa954499f7abaabaa882bbe" | 3 | LIC_FILES_CHKSUM = "file://COPYING.GPL;md5=751419260aa954499f7abaabaa882bbe" |
4 | 4 | ||
5 | SRC_URI = "git://git.ideasonboard.org/yavta.git;branch=master \ | 5 | SRC_URI = "git://git.ideasonboard.org/yavta.git;branch=master;protocol=https \ |
6 | " | 6 | " |
7 | SRCREV = "65f740aa1758531fd810339bc1b7d1d33666e28a" | 7 | SRCREV = "52c975e5542504ac10bed8b1d68df5c75951d202" |
8 | 8 | ||
9 | PV = "0.0" | 9 | PV = "0.0" |
10 | S = "${WORKDIR}/git" | ||
11 | |||
12 | EXTRA_OEMAKE = "-e MAKEFLAGS=" | ||
13 | |||
14 | # The yavta sources include copies of the headers required to build in the | ||
15 | # include directory. The Makefile uses CFLAGS to include these, but since | ||
16 | # we override the CFLAGS then we need to add this include path back in. | ||
17 | CFLAGS += "-I${S}/include" | ||
18 | |||
19 | do_install() { | ||
20 | install -d ${D}${bindir} | ||
21 | install -m 0755 yavta ${D}${bindir} | ||
22 | } | ||
23 | 10 | ||
11 | # Upstream repo does not tag | ||
12 | UPSTREAM_CHECK_COMMITS = "1" | ||
24 | 13 | ||
14 | inherit meson | ||