Skip to contentSkip to conversation

v4l-utils: Install media ctrl header and library files

PATCH Mark Hatle 2 participants 3 messages Jul 15, 2024 – Jul 22, 2024 2 messages not in the archive

lore
Share & tools
lore

Mark Hatle

author
#1 lore raw
In reply to a message not in the archive

This got merged to master and appears to be working. Can I get this backported to Scarthgap?

Commit (in meta-openembedded master)

commit 5f453c3401e20eb5489fac4d3b54a5bf96d019ab

Author: Neel Gandhi <[email protected]>
Date:   Fri Jun 21 16:53:45 2024 +0530

v4l-utils: Install media ctrl header and library files

I verified this commit can be applied directly to scarthgap.

--Mark

Quoted 124 lines · Mark Hatle

From: Neel Gandhi <[email protected]>

Commit 9389d63fdddcab400cb0b243b74d47bf665aba18 removed a previous patch that caused the recipe to install the header and library files. Restore this behavior to the new meson based build system.

---

This is a resend, the first copy seems to have not been delivered to the list?

We would like to get this applied to both master and scarthgap. Any questions let me know.

   ...l-media-ctl-header-and-library-files.patch | 78 +++++++++++++++++++
   .../v4l2apps/v4l-utils_1.26.1.bb              |  1 +
   2 files changed, 79 insertions(+)

create mode 100644
meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-media-ctl-Install-media-ctl-header-and-library-files.patch

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 000000000..6c946d8c4
--- /dev/null
+++
b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-media-ctl-Install-media-ctl-header-and-library-files.patch

(quoted diff) +70 -0
@@ -0,0 +1,78 @@
+From 3867fcfa4389c7fa271705f1fd1d4bfb74bc1bd1 Mon Sep 17 00:00:00 2001
+From: Neel Gandhi <[email protected]>
+Date: Wed, 5 Jun 2024 13:51:36 +0530
+Subject: [PATCH] media-ctl: Install media-ctl header and library files
+
+Install mediactl and v4l2subdev header and library
+files, which may be required by 3rd party applications
+to populate and control v4l2subdev device node tree
+
+Install of these files was removed in upstream commit
+0911dce53b08b0df3066be2c75f67e8a314d8729.
+
+Upstream-Status: Denied
+
+v4l-utils maintainers do not promise a stable API for this library, and
+do not currently have the time to do so. So exporting the API in this
+way is fine, as long as we understand that it will change and users of
+the API will need to adapt over time.
+
+Signed-off-by: Neel Gandhi <[email protected]>
+Signed-off-by: Mark Hatle <[email protected]>
+---
+ utils/media-ctl/meson.build | 28 +++++++++++++++++++++-------
+ 1 file changed, 21 insertions(+), 7 deletions(-)
+
+diff --git a/utils/media-ctl/meson.build b/utils/media-ctl/meson.build
+index 3a7b0c9a..40669b4c 100644
+--- a/utils/media-ctl/meson.build
++++ b/utils/media-ctl/meson.build
+@@ -3,14 +3,24 @@ libmediactl_sources = files(
+     'mediactl-priv.h',
+ )
+ ++libmediactl_api = files(
++    'mediactl.h',
++    'v4l2subdev.h',
++)
++
++install_headers(libmediactl_api, subdir: 'mediactl')
++
+ libmediactl_deps = [
+     dep_libudev,
+ ]
+ +-libmediactl = static_library('mediactl',
+-                             libmediactl_sources,
+-                             dependencies : libmediactl_deps,
+-                             include_directories : v4l2_utils_incdir)
++libmediactl = library('mediactl',
++                      libmediactl_sources,
++                      soversion: '0',
++                      version: '0.0.0',
++                      install : true,
++                      dependencies : libmediactl_deps,
++                      include_directories : v4l2_utils_incdir)
+ + dep_libmediactl = declare_dependency(link_with : libmediactl)
+ +@@ -18,9 +28,13 @@ libv4l2subdev_sources = files('libv4l2subdev.c')
+ libv4l2subdev_sources += media_bus_format_names_h
+ libv4l2subdev_sources += media_bus_format_codes_h
+ +-libv4l2subdev = static_library('v4l2subdev',
+-                               libv4l2subdev_sources,
+-                               include_directories : v4l2_utils_incdir)
++libv4l2subdev = library('v4l2subdev',
++                        libv4l2subdev_sources,
++                        soversion: '0',
++                        version: '0.0.0',
++                        install : true,
++                        dependencies : dep_libmediactl,
++                        include_directories : v4l2_utils_incdir)
+ + dep_libv4l2subdev = declare_dependency(link_with : libv4l2subdev)
+ +-- +2.34.1
+
meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.26.1.bb +1 -1
index 52759ef18..eb38d9713 100644
@@ -28,6 +28,7 @@ PACKAGECONFIG[v4l2-tracer] = ",-Dv4l2-tracer=disabled,json-c"
   SRC_URI = "\
       git://git.linuxtv.org/v4l-utils.git;protocol=https;branch=stable-1.26 \
       file://0001-keytable-meson-Restrict-the-installation-of-50-rc_ke.patch \
+    file://0001-media-ctl-Install-media-ctl-header-and-library-files.patch \
   "
    SRCREV = "4aee01a027923cab1e40969f56f8ba58d3e6c0d1"
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#111001): https://lists.openembedded.org/g/openembedded-devel/message/111001
Mute This Topic: https://lists.openembedded.org/mt/106851971/3616948
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

I am ok with it. Adding Armin as well.

Quoted 142 lines · Mark Hatle

This got merged to master and appears to be working. Can I get this backported to Scarthgap?

Commit (in meta-openembedded master)

commit 5f453c3401e20eb5489fac4d3b54a5bf96d019ab

Author: Neel Gandhi <[email protected]>
Date:   Fri Jun 21 16:53:45 2024 +0530

v4l-utils: Install media ctrl header and library files

I verified this commit can be applied directly to scarthgap.

--Mark

Quoted 124 lines · Mark Hatle

From: Neel Gandhi <[email protected]>

Commit 9389d63fdddcab400cb0b243b74d47bf665aba18 removed a previous patch that caused the recipe to install the header and library files. Restore this behavior to the new meson based build system.

---

This is a resend, the first copy seems to have not been delivered to the list?

We would like to get this applied to both master and scarthgap. Any questions let me know.

   ...l-media-ctl-header-and-library-files.patch | 78 +++++++++++++++++++
   .../v4l2apps/v4l-utils_1.26.1.bb              |  1 +
   2 files changed, 79 insertions(+)

create mode 100644
meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-media-ctl-Install-media-ctl-header-and-library-files.patch

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 000000000..6c946d8c4
--- /dev/null
+++
b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-media-ctl-Install-media-ctl-header-and-library-files.patch

(quoted diff) +70 -0
@@ -0,0 +1,78 @@
+From 3867fcfa4389c7fa271705f1fd1d4bfb74bc1bd1 Mon Sep 17 00:00:00 2001
+From: Neel Gandhi <[email protected]>
+Date: Wed, 5 Jun 2024 13:51:36 +0530
+Subject: [PATCH] media-ctl: Install media-ctl header and library files
+
+Install mediactl and v4l2subdev header and library
+files, which may be required by 3rd party applications
+to populate and control v4l2subdev device node tree
+
+Install of these files was removed in upstream commit
+0911dce53b08b0df3066be2c75f67e8a314d8729.
+
+Upstream-Status: Denied
+
+v4l-utils maintainers do not promise a stable API for this library, and
+do not currently have the time to do so. So exporting the API in this
+way is fine, as long as we understand that it will change and users of
+the API will need to adapt over time.
+
+Signed-off-by: Neel Gandhi <[email protected]>
+Signed-off-by: Mark Hatle <[email protected]>
+---
+ utils/media-ctl/meson.build | 28 +++++++++++++++++++++-------
+ 1 file changed, 21 insertions(+), 7 deletions(-)
+
+diff --git a/utils/media-ctl/meson.build b/utils/media-ctl/meson.build
+index 3a7b0c9a..40669b4c 100644
+--- a/utils/media-ctl/meson.build
++++ b/utils/media-ctl/meson.build
+@@ -3,14 +3,24 @@ libmediactl_sources = files(
+     'mediactl-priv.h',
+ )
+ ++libmediactl_api = files(
++    'mediactl.h',
++    'v4l2subdev.h',
++)
++
++install_headers(libmediactl_api, subdir: 'mediactl')
++
+ libmediactl_deps = [
+     dep_libudev,
+ ]
+ +-libmediactl = static_library('mediactl',
+-                             libmediactl_sources,
+-                             dependencies : libmediactl_deps,
+-                             include_directories : v4l2_utils_incdir)
++libmediactl = library('mediactl',
++                      libmediactl_sources,
++                      soversion: '0',
++                      version: '0.0.0',
++                      install : true,
++                      dependencies : libmediactl_deps,
++                      include_directories : v4l2_utils_incdir)
+ + dep_libmediactl = declare_dependency(link_with : libmediactl)
+ +@@ -18,9 +28,13 @@ libv4l2subdev_sources = files('libv4l2subdev.c')
+ libv4l2subdev_sources += media_bus_format_names_h
+ libv4l2subdev_sources += media_bus_format_codes_h
+ +-libv4l2subdev = static_library('v4l2subdev',
+-                               libv4l2subdev_sources,
+-                               include_directories : v4l2_utils_incdir)
++libv4l2subdev = library('v4l2subdev',
++                        libv4l2subdev_sources,
++                        soversion: '0',
++                        version: '0.0.0',
++                        install : true,
++                        dependencies : dep_libmediactl,
++                        include_directories : v4l2_utils_incdir)
+ + dep_libv4l2subdev = declare_dependency(link_with : libv4l2subdev)
+ +-- +2.34.1
+
meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.26.1.bb +1 -1
index 52759ef18..eb38d9713 100644
@@ -28,6 +28,7 @@ PACKAGECONFIG[v4l2-tracer] = ",-Dv4l2-tracer=disabled,json-c"
   SRC_URI = "\
       git://git.linuxtv.org/v4l-utils.git;protocol=https;branch=stable-1.26 \
       file://0001-keytable-meson-Restrict-the-installation-of-50-rc_ke.patch \
+    file://0001-media-ctl-Install-media-ctl-header-and-library-files.patch \
   "
    SRCREV = "4aee01a027923cab1e40969f56f8ba58d3e6c0d1"
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#111001): https://lists.openembedded.org/g/openembedded-devel/message/111001
Mute This Topic: https://lists.openembedded.org/mt/106851971/3616948
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw
In reply to a message not in the archive

Armin has a monthly release schedule for Every release branch so you can make a rough estimate based on previous merge to scarthgap

Quoted 186 lines · Neel

Hi Armin / Khem,

Could you please provide an update on when this can be merge into the scarthgap branch?

As, you can see that we've already sent this patch for merging it into scarthgap, so we're waiting for the same. Also we've already verified this patch in the scarthgap branch by pulling it locally from the master's commitID.

Thanks & Regards,
Neel Gandhi
------------------------------
*From:* Khem Raj <[email protected]>
*Sent:* 16 July 2024 00:38
*To:* Mark Hatle <[email protected]>; Armin Kuster < [email protected]>
*Cc:* openembeded-devel <[email protected]>; Gandhi, Neel <[email protected]>; Hatle, Mark <[email protected]> *Subject:* Re: [oe][master][scarthgap][meta-oe][PATCH] v4l-utils: Install media ctrl header and library files

I am ok with it. Adding Armin as well.

Quoted 2 lines · Mark Hatle

This got merged to master and appears to be working. Can I get this

backported

Quoted 8 lines

to Scarthgap?

Commit (in meta-openembedded master)

commit 5f453c3401e20eb5489fac4d3b54a5bf96d019ab

Author: Neel Gandhi <[email protected]>
Date:   Fri Jun 21 16:53:45 2024 +0530
Quoted 11 lines

v4l-utils: Install media ctrl header and library files

I verified this commit can be applied directly to scarthgap.

--Mark

Quoted 3 lines · Mark Hatle

From: Neel Gandhi <[email protected]>

Commit 9389d63fdddcab400cb0b243b74d47bf665aba18 removed a previous

patch

Quoted 9 lines
Quoted 9 lines

that caused the recipe to install the header and library files. Restore this behavior to the new meson based build system.

---

This is a resend, the first copy seems to have not been delivered to

the list?

Quoted 2 lines
Quoted 2 lines

We would like to get this applied to both master and scarthgap. Any

questions

Quoted 3 lines
Quoted 3 lines

let me know.

   ...l-media-ctl-header-and-library-files.patch | 78

+++++++++++++++++++

Quoted 4 lines
Quoted 4 lines
   .../v4l2apps/v4l-utils_1.26.1.bb              |  1 +
   2 files changed, 79 insertions(+)

create mode 100644

meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-media-ctl-Install-media-ctl-header-and-library-files.patch

Quoted 3 lines
Quoted 3 lines

diff --git

a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-media-ctl-Install-media-ctl-header-and-library-files.patch

Quoted 1 line
Quoted 1 line

b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-media-ctl-Install-media-ctl-header-and-library-files.patch

Quoted 5 lines
Quoted 5 lines

new file mode 100644
index 000000000..6c946d8c4
--- /dev/null
+++

b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-media-ctl-Install-media-ctl-header-and-library-files.patch

Quoted 8 lines
Quoted 8 lines
(quoted diff) +7 -0
@@ -0,0 +1,78 @@
+From 3867fcfa4389c7fa271705f1fd1d4bfb74bc1bd1 Mon Sep 17 00:00:00 2001
+From: Neel Gandhi <[email protected]>
+Date: Wed, 5 Jun 2024 13:51:36 +0530
+Subject: [PATCH] media-ctl: Install media-ctl header and library files
+
+Install mediactl and v4l2subdev header and library
+files, which may be required by 3rd party applications
Quoted 8 lines

Review line 15

Quoted 8 lines
(quoted diff) +8 -0
+to populate and control v4l2subdev device node tree
+
+Install of these files was removed in upstream commit
+0911dce53b08b0df3066be2c75f67e8a314d8729.
+
+Upstream-Status: Denied
+
+v4l-utils maintainers do not promise a stable API for this library,

and

Quoted 37 lines
Quoted 37 lines
(quoted diff) +37 -0
+do not currently have the time to do so. So exporting the API in this
+way is fine, as long as we understand that it will change and users of
+the API will need to adapt over time.
+
+Signed-off-by: Neel Gandhi <[email protected]>
+Signed-off-by: Mark Hatle <[email protected]>
+---
+ utils/media-ctl/meson.build | 28 +++++++++++++++++++++-------
+ 1 file changed, 21 insertions(+), 7 deletions(-)
+
+diff --git a/utils/media-ctl/meson.build b/utils/media-ctl/meson.build
+index 3a7b0c9a..40669b4c 100644
+--- a/utils/media-ctl/meson.build
++++ b/utils/media-ctl/meson.build
+@@ -3,14 +3,24 @@ libmediactl_sources = files(
+     'mediactl-priv.h',
+ )
+ ++libmediactl_api = files(
++    'mediactl.h',
++    'v4l2subdev.h',
++)
++
++install_headers(libmediactl_api, subdir: 'mediactl')
++
+ libmediactl_deps = [
+     dep_libudev,
+ ]
+ +-libmediactl = static_library('mediactl',
+-                             libmediactl_sources,
+-                             dependencies : libmediactl_deps,
+-                             include_directories : v4l2_utils_incdir)
++libmediactl = library('mediactl',
++                      libmediactl_sources,
++                      soversion: '0',
++                      version: '0.0.0',
++                      install : true,
++                      dependencies : libmediactl_deps,
Quoted 8 lines

Review line 60

Quoted 8 lines
(quoted diff) +8 -0
++                      include_directories : v4l2_utils_incdir)
+ + dep_libmediactl = declare_dependency(link_with : libmediactl)
+ +@@ -18,9 +28,13 @@ libv4l2subdev_sources = files('libv4l2subdev.c')
+ libv4l2subdev_sources += media_bus_format_names_h
+ libv4l2subdev_sources += media_bus_format_codes_h
+ +-libv4l2subdev = static_library('v4l2subdev',
+-                               libv4l2subdev_sources,
+-                               include_directories :

v4l2_utils_incdir)

Quoted 8 lines
Quoted 8 lines
(quoted diff) +8 -0
++libv4l2subdev = library('v4l2subdev',
++                        libv4l2subdev_sources,
++                        soversion: '0',
++                        version: '0.0.0',
++                        install : true,
++                        dependencies : dep_libmediactl,
++                        include_directories : v4l2_utils_incdir)
+ + dep_libv4l2subdev = declare_dependency(link_with : libv4l2subdev)
Quoted 8 lines

meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.26.1.bb PACKAGECONFIG[v4l2-tracer] =

Quoted 8 lines
(quoted diff) +2 -0
+ +-- +2.34.1
+
meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.26.1.bb +0 -0
index 52759ef18..eb38d9713 100644
@@ -28,6 +28,7 @@ PACKAGECONFIG[v4l2-tracer] =

",-Dv4l2-tracer=disabled,json-c"

Quoted 2 lines

meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.26.1.bb PACKAGECONFIG[v4l2-tracer] = · line 29

Quoted 2 lines
meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.26.1.bb +0 -0
   SRC_URI = "\
       git://

git.linuxtv.org/v4l-utils.git;protocol=https;branch=stable-1.26 \

Quoted 1 line
Quoted 1 line

file://0001-keytable-meson-Restrict-the-installation-of-50-rc_ke.patch \

Quoted 1 line
Quoted 1 line

+

file://0001-media-ctl-Install-media-ctl-header-and-library-files.patch \

Quoted 8 lines
Quoted 8 lines
   "
    SRCREV = "4aee01a027923cab1e40969f56f8ba58d3e6c0d1"

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#111001):

https://lists.openembedded.org/g/openembedded-devel/message/111001

Quoted 3 lines
Quoted 3 lines

Mute This Topic: https://lists.openembedded.org/mt/106851971/3616948
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub

[[email protected]]

Quoted 2 lines
Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-