diff options
Diffstat (limited to 'meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-media-ctl-Install-media-ctl-header-and-library-files.patch')
-rw-r--r-- | meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-media-ctl-Install-media-ctl-header-and-library-files.patch | 78 |
1 files changed, 78 insertions, 0 deletions
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 | |||