diff options
| -rw-r--r-- | meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-Revert-media-ctl-Don-t-install-libmediactl-and-libv4.patch | 46 | ||||
| -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/0002-original-patch-mediactl-pkgconfig.patch | 23 | ||||
| -rw-r--r-- | meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0003-original-patch-export-mediactl-headers.patch | 26 | ||||
| -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 @@ | |||
| 1 | From 0d5c0e9a75eca43667b0e29155b635e50622b66a Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Fri, 27 Feb 2015 21:55:36 +0000 | ||
| 4 | Subject: [PATCH] Revert "media-ctl: Don't install libmediactl and | ||
| 5 | |||
| 6 | libv4l2subdev" | ||
| 7 | |||
| 8 | This reverts commit 0911dce53b08b0df3066be2c75f67e8a314d8729. | ||
| 9 | |||
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 11 | |||
| 12 | Conflicts: | ||
| 13 | utils/media-ctl/Makefile.am | ||
| 14 | |||
| 15 | --- | ||
| 16 | Upstream-Status: Pending | ||
| 17 | |||
| 18 | utils/media-ctl/Makefile.am | 10 +++------- | ||
| 19 | 1 file changed, 3 insertions(+), 7 deletions(-) | ||
| 20 | |||
| 21 | diff --git a/utils/media-ctl/Makefile.am b/utils/media-ctl/Makefile.am | ||
| 22 | index 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 @@ | |||
| 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/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 @@ | |||
| 1 | From 320b8378ee30eb5e0fe83a8b397f822f2f88a4c1 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sun, 1 Mar 2015 22:25:07 +0000 | ||
| 4 | Subject: [PATCH] %% original patch: mediactl-pkgconfig.patch | ||
| 5 | |||
| 6 | --- | ||
| 7 | Upstream-Status: Pending | ||
| 8 | |||
| 9 | utils/media-ctl/Makefile.am | 1 + | ||
| 10 | 1 file changed, 1 insertion(+) | ||
| 11 | |||
| 12 | diff --git a/utils/media-ctl/Makefile.am b/utils/media-ctl/Makefile.am | ||
| 13 | index 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 @@ | |||
| 1 | From f7109d6b2fcb291824d795071c04a492d9fbc45b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sun, 1 Mar 2015 22:25:07 +0000 | ||
| 4 | Subject: [PATCH] %% original patch: export-mediactl-headers.patch | ||
| 5 | |||
| 6 | --- | ||
| 7 | Upstream-Status: Pending | ||
| 8 | |||
| 9 | utils/media-ctl/Makefile.am | 4 ++-- | ||
| 10 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 11 | |||
| 12 | diff --git a/utils/media-ctl/Makefile.am b/utils/media-ctl/Makefile.am | ||
| 13 | index 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 |
| 19 | GLIBC_64BIT_TIME_FLAGS = "" | 19 | GLIBC_64BIT_TIME_FLAGS = "" |
| 20 | 20 | ||
| 21 | inherit autotools gettext pkgconfig | 21 | inherit meson gettext pkgconfig |
| 22 | 22 | ||
| 23 | PACKAGECONFIG ??= "media-ctl" | 23 | PACKAGECONFIG ??= "" |
| 24 | PACKAGECONFIG[media-ctl] = "--enable-v4l-utils,--disable-v4l-utils,," | 24 | PACKAGECONFIG[qv4l2] = ",-Dqv4l2=disabled" |
| 25 | PACKAGECONFIG[qv4l2] = ",--disable-qv4l2" | 25 | PACKAGECONFIG[qvidcap] = ",-Dqvidcap=disabled" |
| 26 | PACKAGECONFIG[qvidcap] = ",--disable-qvidcap" | 26 | PACKAGECONFIG[v4l2-tracer] = ",-Dv4l2-tracer=disabled,json-c" |
| 27 | PACKAGECONFIG[v4l2-tracer] = ",--disable-v4l2-tracer,json-c" | ||
| 28 | 27 | ||
| 29 | SRC_URI = "\ | 28 | SRC_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 | ||
| 37 | SRCREV = "8799081b143627c9c09dea0c60ad3d1cc17cc848" | 34 | SRCREV = "4aee01a027923cab1e40969f56f8ba58d3e6c0d1" |
| 38 | 35 | ||
| 39 | PV .= "+git${SRCPV}" | 36 | PV .= "+git${SRCPV}" |
| 40 | 37 | ||
| 41 | S = "${WORKDIR}/git" | 38 | S = "${WORKDIR}/git" |
| 42 | 39 | ||
| 43 | do_configure:prepend() { | 40 | EXTRA_OEMESON = "-Dudevdir=${base_libdir}/udev -Dv4l2-compliance-32=false -Dv4l2-ctl-32=false" |
| 44 | cd ${S}; ./bootstrap.sh; cd - | ||
| 45 | } | ||
| 46 | 41 | ||
| 47 | EXTRA_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. |
| 44 | EXTRA_OEMESON += "-Dgconv=disabled" | ||
| 49 | 45 | ||
| 50 | VIRTUAL-RUNTIME_ir-keytable-keymaps ?= "rc-keymaps" | 46 | VIRTUAL-RUNTIME_ir-keytable-keymaps ?= "rc-keymaps" |
| 51 | 47 | ||
