diff options
| author | Zelan Zou <zelan.zou@nxp.com> | 2026-03-20 16:38:26 +0800 |
|---|---|---|
| committer | Zelan Zou <zelan.zou@nxp.com> | 2026-03-23 10:46:11 +0800 |
| commit | 25c0c7d34a6031ca1d347433291ad07c2c93626e (patch) | |
| tree | fbcbc27e4a89f7171d80475ebd5ad1af0af9721e | |
| parent | 8329164ab96b5cd8312a2bbdeeb7310b96403c88 (diff) | |
| download | meta-freescale-25c0c7d34a6031ca1d347433291ad07c2c93626e.tar.gz | |
gst/gstreamer: Bump 1.26.0 -> 1.26.6
Signed-off-by: Zelan Zou <zelan.zou@nxp.com>
27 files changed, 294 insertions, 437 deletions
diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc index 8810085d6..25c65537b 100644 --- a/conf/machine/include/imx-base.inc +++ b/conf/machine/include/imx-base.inc | |||
| @@ -538,20 +538,20 @@ MACHINE_GSTREAMER_1_0_PLUGIN:mx8ulp-nxp-bsp ?= "imx-gst1.0-plugin" | |||
| 538 | MACHINE_GSTREAMER_1_0_PLUGIN:mx93-nxp-bsp ?= "imx-gst1.0-plugin" | 538 | MACHINE_GSTREAMER_1_0_PLUGIN:mx93-nxp-bsp ?= "imx-gst1.0-plugin" |
| 539 | 539 | ||
| 540 | # GStreamer forked recipes | 540 | # GStreamer forked recipes |
| 541 | PREFERRED_VERSION_gstreamer1.0:imx-nxp-bsp ??= "1.26.0.imx" | 541 | PREFERRED_VERSION_gstreamer1.0:imx-nxp-bsp ??= "1.26.6.imx" |
| 542 | PREFERRED_VERSION_gstreamer1.0-plugins-bad:imx-nxp-bsp ??= "1.26.0.imx" | 542 | PREFERRED_VERSION_gstreamer1.0-plugins-bad:imx-nxp-bsp ??= "1.26.6.imx" |
| 543 | PREFERRED_VERSION_gstreamer1.0-plugins-base:imx-nxp-bsp ??= "1.26.0.imx" | 543 | PREFERRED_VERSION_gstreamer1.0-plugins-base:imx-nxp-bsp ??= "1.26.6.imx" |
| 544 | PREFERRED_VERSION_gstreamer1.0-plugins-good:imx-nxp-bsp ??= "1.26.0.imx" | 544 | PREFERRED_VERSION_gstreamer1.0-plugins-good:imx-nxp-bsp ??= "1.26.6.imx" |
| 545 | 545 | ||
| 546 | 546 | ||
| 547 | # GStreamer copied recipes | 547 | # GStreamer copied recipes |
| 548 | PREFERRED_VERSION_gst-devtools:imx-nxp-bsp ??= "1.26.0.imx" | 548 | PREFERRED_VERSION_gst-devtools:imx-nxp-bsp ??= "1.26.6.imx" |
| 549 | PREFERRED_VERSION_gst-examples:imx-nxp-bsp ??= "1.24.7.imx" | 549 | PREFERRED_VERSION_gst-examples:imx-nxp-bsp ??= "1.24.7.imx" |
| 550 | PREFERRED_VERSION_gstreamer1.0-libav:imx-nxp-bsp ??= "1.26.0.imx" | 550 | PREFERRED_VERSION_gstreamer1.0-libav:imx-nxp-bsp ??= "1.26.6.imx" |
| 551 | PREFERRED_VERSION_gstreamer1.0-plugins-ugly:imx-nxp-bsp ??= "1.26.0.imx" | 551 | PREFERRED_VERSION_gstreamer1.0-plugins-ugly:imx-nxp-bsp ??= "1.26.6.imx" |
| 552 | PREFERRED_VERSION_gstreamer1.0-python:imx-nxp-bsp ??= "1.26.0.imx" | 552 | PREFERRED_VERSION_gstreamer1.0-python:imx-nxp-bsp ??= "1.26.6.imx" |
| 553 | PREFERRED_VERSION_gstreamer1.0-rtsp-server:imx-nxp-bsp ??= "1.26.0.imx" | 553 | PREFERRED_VERSION_gstreamer1.0-rtsp-server:imx-nxp-bsp ??= "1.26.6.imx" |
| 554 | PREFERRED_VERSION_gstreamer1.0-vaapi:imx-nxp-bsp ??= "1.26.0.imx" | 554 | PREFERRED_VERSION_gstreamer1.0-vaapi:imx-nxp-bsp ??= "1.26.6.imx" |
| 555 | 555 | ||
| 556 | # Determines if the SoC has support for Vivante kernel driver | 556 | # Determines if the SoC has support for Vivante kernel driver |
| 557 | SOC_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT = "0" | 557 | SOC_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT = "0" |
diff --git a/recipes-multimedia/gstreamer/gst-devtools_1.26.0.imx.bb b/recipes-multimedia/gstreamer/gst-devtools_1.26.6.bb index 9a619f5a0..ddbe334db 100644 --- a/recipes-multimedia/gstreamer/gst-devtools_1.26.0.imx.bb +++ b/recipes-multimedia/gstreamer/gst-devtools_1.26.6.bb | |||
| @@ -6,13 +6,13 @@ SECTION = "multimedia" | |||
| 6 | LICENSE = "LGPL-2.1-or-later" | 6 | LICENSE = "LGPL-2.1-or-later" |
| 7 | LIC_FILES_CHKSUM = "file://validate/COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343" | 7 | LIC_FILES_CHKSUM = "file://validate/COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343" |
| 8 | 8 | ||
| 9 | SRC_URI = "https://gstreamer.freedesktop.org/src/gst-devtools/gst-devtools-${@get_gst_ver("${PV}")}.tar.xz \ | 9 | #S = "${WORKDIR}/gst-devtools-${PV}" |
| 10 | |||
| 11 | SRC_URI = "https://gstreamer.freedesktop.org/src/gst-devtools/gst-devtools-${PV}.tar.xz \ | ||
| 10 | file://0001-connect-has-a-different-signature-on-musl.patch \ | 12 | file://0001-connect-has-a-different-signature-on-musl.patch \ |
| 11 | " | 13 | " |
| 12 | 14 | ||
| 13 | S = "${UNPACKDIR}/gst-devtools-${@get_gst_ver("${PV}")}" | 15 | SRC_URI[sha256sum] = "dec8fc56d578d65c498e65e56efe44994c5d3f4e85dbbdff0242b441b32e19b2" |
| 14 | |||
| 15 | SRC_URI[sha256sum] = "eff33d7dc292bb074a2788ea887b6283398ffdefafa49fb7d08efe6658a65648" | ||
| 16 | 16 | ||
| 17 | DEPENDS = "json-glib glib-2.0 glib-2.0-native gstreamer1.0 gstreamer1.0-plugins-base" | 17 | DEPENDS = "json-glib glib-2.0 glib-2.0-native gstreamer1.0 gstreamer1.0-plugins-base" |
| 18 | RRECOMMENDS:${PN} = "git" | 18 | RRECOMMENDS:${PN} = "git" |
| @@ -40,9 +40,6 @@ EXTRA_OEMESON += " \ | |||
| 40 | -Dvalidate=enabled \ | 40 | -Dvalidate=enabled \ |
| 41 | ${@gettext_oemeson(d)} \ | 41 | ${@gettext_oemeson(d)} \ |
| 42 | " | 42 | " |
| 43 | # Drop .imx from PV | ||
| 44 | def get_gst_ver(v): | ||
| 45 | return oe.utils.trim_version(v, 3) | ||
| 46 | 43 | ||
| 47 | do_install:append () { | 44 | do_install:append () { |
| 48 | for fn in ${bindir}/gst-validate-launcher \ | 45 | for fn in ${bindir}/gst-validate-launcher \ |
| @@ -53,3 +50,10 @@ do_install:append () { | |||
| 53 | 50 | ||
| 54 | GIR_MESON_ENABLE_FLAG = "enabled" | 51 | GIR_MESON_ENABLE_FLAG = "enabled" |
| 55 | GIR_MESON_DISABLE_FLAG = "disabled" | 52 | GIR_MESON_DISABLE_FLAG = "disabled" |
| 53 | |||
| 54 | ########### i.MX overrides ################ | ||
| 55 | |||
| 56 | EXTRA_OEMESON:append:mx93-nxp-bsp = " -Dintrospection=disabled " | ||
| 57 | EXTRA_OEMESON:append:mx943-nxp-bsp = " -Dintrospection=disabled " | ||
| 58 | |||
| 59 | ########### End of i.MX overrides ######### | ||
diff --git a/recipes-multimedia/gstreamer/gst-examples/0001-Make-player-examples-installable.patch b/recipes-multimedia/gstreamer/gst-examples/0001-Make-player-examples-installable.patch deleted file mode 100644 index 828c87dc9..000000000 --- a/recipes-multimedia/gstreamer/gst-examples/0001-Make-player-examples-installable.patch +++ /dev/null | |||
| @@ -1,37 +0,0 @@ | |||
| 1 | From 7924016fce2d0b435891a335cdae52fc939c7e3b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Jussi Kukkonen <jussi.kukkonen@intel.com> | ||
| 3 | Date: Thu, 17 Aug 2017 11:07:02 +0300 | ||
| 4 | Subject: [PATCH] Make player examples installable | ||
| 5 | |||
| 6 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> | ||
| 7 | Upstream-Status: Denied [Upstream considers these code examples, for now a least] | ||
| 8 | |||
| 9 | https://bugzilla.gnome.org/show_bug.cgi?id=777827 | ||
| 10 | |||
| 11 | --- | ||
| 12 | playback/player/gst-play/meson.build | 1 + | ||
| 13 | playback/player/gtk/meson.build | 1 + | ||
| 14 | 2 files changed, 2 insertions(+) | ||
| 15 | |||
| 16 | Index: gst-examples/playback/player/gst-play/meson.build | ||
| 17 | =================================================================== | ||
| 18 | --- gst-examples.orig/playback/player/gst-play/meson.build | ||
| 19 | +++ gst-examples/playback/player/gst-play/meson.build | ||
| 20 | @@ -2,5 +2,6 @@ executable('gst-play', | ||
| 21 | ['gst-play.c', | ||
| 22 | 'gst-play-kb.c', | ||
| 23 | 'gst-play-kb.h'], | ||
| 24 | + install: true, | ||
| 25 | dependencies : [gst_dep, dependency('gstreamer-play-1.0'), m_dep]) | ||
| 26 | |||
| 27 | Index: gst-examples/playback/player/gtk/meson.build | ||
| 28 | =================================================================== | ||
| 29 | --- gst-examples.orig/playback/player/gtk/meson.build | ||
| 30 | +++ gst-examples/playback/player/gtk/meson.build | ||
| 31 | @@ -20,5 +20,6 @@ if gtk_dep.found() | ||
| 32 | 'gtk-video-renderer.h', | ||
| 33 | 'gtk-video-renderer.c'], | ||
| 34 | c_args : extra_c_args, | ||
| 35 | + install: true, | ||
| 36 | dependencies : [gst_dep, gsttag_dep, gstplay_dep, gtk_dep, x11_dep]) | ||
| 37 | endif | ||
diff --git a/recipes-multimedia/gstreamer/gst-examples/gst-player.desktop b/recipes-multimedia/gstreamer/gst-examples/gst-player.desktop deleted file mode 100644 index d165e5d91..000000000 --- a/recipes-multimedia/gstreamer/gst-examples/gst-player.desktop +++ /dev/null | |||
| @@ -1,10 +0,0 @@ | |||
| 1 | [Desktop Entry] | ||
| 2 | Name=Media Player | ||
| 3 | Comment=Basic media player | ||
| 4 | Icon=video-player | ||
| 5 | TryExec=gtk-play | ||
| 6 | Exec=gtk-play | ||
| 7 | StartupNotify=true | ||
| 8 | Terminal=false | ||
| 9 | Type=Application | ||
| 10 | Categories=GTK;AudioVideo; | ||
diff --git a/recipes-multimedia/gstreamer/gst-examples_1.24.7.imx.bb b/recipes-multimedia/gstreamer/gst-examples_1.24.7.imx.bb deleted file mode 100644 index 9db0051a1..000000000 --- a/recipes-multimedia/gstreamer/gst-examples_1.24.7.imx.bb +++ /dev/null | |||
| @@ -1,38 +0,0 @@ | |||
| 1 | # This builds an older version which is compatible with the gstreamer NXP fork 1.24.7.imx, | ||
| 2 | # thus the version is appended with '.imx' | ||
| 3 | |||
| 4 | SUMMARY = "GStreamer examples (including gtk-play, gst-play)" | ||
| 5 | DESCRIPTION = "GStreamer example applications." | ||
| 6 | HOMEPAGE = "https://gitlab.freedesktop.org/gstreamer/gst-examples" | ||
| 7 | BUGTRACKER = "https://gitlab.freedesktop.org/gstreamer/gst-examples/-/issues" | ||
| 8 | LICENSE = "LGPL-2.0-or-later" | ||
| 9 | LIC_FILES_CHKSUM = "file://playback/player/gtk/gtk-play.c;beginline=1;endline=20;md5=f8c72dae3d36823ec716a9ebcae593b9" | ||
| 10 | |||
| 11 | DEPENDS = "glib-2.0 gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad gtk+3 json-glib glib-2.0-native" | ||
| 12 | |||
| 13 | SRC_URI = "git://gitlab.freedesktop.org/gstreamer/gstreamer.git;protocol=https;branch=1.24 \ | ||
| 14 | file://0001-Make-player-examples-installable.patch \ | ||
| 15 | file://gst-player.desktop \ | ||
| 16 | " | ||
| 17 | |||
| 18 | SRCREV = "0f1e984e41ce8d6d0758265d35e8b10d5815fde2" | ||
| 19 | |||
| 20 | S = "${UNPACKDIR}/${BP}/subprojects/gst-examples" | ||
| 21 | |||
| 22 | inherit meson pkgconfig features_check | ||
| 23 | |||
| 24 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.(\d*[02468])+(\.\d+)+)" | ||
| 25 | |||
| 26 | ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" | ||
| 27 | |||
| 28 | do_install:append() { | ||
| 29 | install -m 0644 -D ${UNPACKDIR}/gst-player.desktop ${D}${datadir}/applications/gst-player.desktop | ||
| 30 | } | ||
| 31 | |||
| 32 | RDEPENDS:${PN} = "gstreamer1.0-plugins-base-playback" | ||
| 33 | RRECOMMENDS:${PN} = "gstreamer1.0-plugins-base-meta \ | ||
| 34 | gstreamer1.0-plugins-good-meta \ | ||
| 35 | gstreamer1.0-plugins-bad-meta \ | ||
| 36 | ${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", "gstreamer1.0-libav", "", d)} \ | ||
| 37 | ${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", "gstreamer1.0-plugins-ugly-meta", "", d)}" | ||
| 38 | RPROVIDES:${PN} += "gst-player gst-player-bin" | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.26.0.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.26.6.bb index 138398d85..e7a4a7dea 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.26.0.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.26.6.bb | |||
| @@ -11,10 +11,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=69333daa044cb77e486cc36129f7a770 \ | |||
| 11 | file://ext/libav/gstav.h;beginline=1;endline=18;md5=a752c35267d8276fd9ca3db6994fca9c \ | 11 | file://ext/libav/gstav.h;beginline=1;endline=18;md5=a752c35267d8276fd9ca3db6994fca9c \ |
| 12 | " | 12 | " |
| 13 | 13 | ||
| 14 | SRC_URI = "https://gstreamer.freedesktop.org/src/gst-libav/gst-libav-${@get_gst_ver('${PV}')}.tar.xz" | 14 | SRC_URI = "https://gstreamer.freedesktop.org/src/gst-libav/gst-libav-${PV}.tar.xz" |
| 15 | SRC_URI[sha256sum] = "707a8b687ff5fddcee5b02415e2ec9b71b4ac44d0b7aec3b477364ceecbf1ecf" | 15 | SRC_URI[sha256sum] = "6e50a6222d509c52b19143f9a7bd3581e22c745d0c4bc27ddb07e1229bcc11b8" |
| 16 | 16 | ||
| 17 | S = "${UNPACKDIR}/gst-libav-${@get_gst_ver('${PV}')}" | 17 | S = "${UNPACKDIR}/gst-libav-${PV}" |
| 18 | 18 | ||
| 19 | DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base ffmpeg" | 19 | DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base ffmpeg" |
| 20 | 20 | ||
| @@ -24,11 +24,5 @@ EXTRA_OEMESON += " \ | |||
| 24 | -Dtests=disabled \ | 24 | -Dtests=disabled \ |
| 25 | " | 25 | " |
| 26 | 26 | ||
| 27 | # Drop .imx from PV | ||
| 28 | def get_gst_ver(v): | ||
| 29 | return oe.utils.trim_version(v, 3) | ||
| 30 | |||
| 31 | FILES:${PN} += "${libdir}/gstreamer-1.0/*.so" | 27 | FILES:${PN} += "${libdir}/gstreamer-1.0/*.so" |
| 32 | FILES:${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a" | 28 | FILES:${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a" |
| 33 | |||
| 34 | COMPATIBLE_MACHINE = "(imx-nxp-bsp)" | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-MMFMWK-9590-gstcuda-disable-gir-build-for-cuda-plugi.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-MMFMWK-9590-gstcuda-disable-gir-build-for-cuda-plugi.patch new file mode 100644 index 000000000..38282e478 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-MMFMWK-9590-gstcuda-disable-gir-build-for-cuda-plugi.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From 71b5b04685e6b03b7e2325fed22c83d9c6300f65 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Haihua Hu <jared.hu@nxp.com> | ||
| 3 | Date: Fri, 6 Feb 2026 17:32:34 +0900 | ||
| 4 | Subject: [PATCH] MMFMWK-9590 gstcuda: disable gir build for cuda plugin | ||
| 5 | libraries | ||
| 6 | |||
| 7 | This is a workaround to only disable cuda gir build to avoid totally | ||
| 8 | disable bad library gir build. mesa-rvgpu-emu patch break cuda gir build | ||
| 9 | |||
| 10 | Upstream-Status: Inappropriate [i.MX specific] | ||
| 11 | --- | ||
| 12 | gst-libs/gst/cuda/meson.build | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/gst-libs/gst/cuda/meson.build b/gst-libs/gst/cuda/meson.build | ||
| 16 | index 50ae0276ce..5e8a3d209b 100644 | ||
| 17 | --- a/gst-libs/gst/cuda/meson.build | ||
| 18 | +++ b/gst-libs/gst/cuda/meson.build | ||
| 19 | @@ -157,7 +157,7 @@ gstcuda= library('gstcuda-' + api_version, | ||
| 20 | |||
| 21 | gen_sources = [] | ||
| 22 | library_def = {'lib': gstcuda} | ||
| 23 | -if build_gir | ||
| 24 | +if false | ||
| 25 | gir_includes = ['Gst-1.0', 'GstBase-1.0', 'GstVideo-1.0', 'CudaGst-1.0'] | ||
| 26 | if gstglproto_dep.found() | ||
| 27 | gir_includes += ['GstGL-1.0'] | ||
| 28 | -- | ||
| 29 | 2.34.1 | ||
| 30 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch new file mode 100644 index 000000000..029b80e17 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | From 3bc5d48257032b6bbee532aad15062fbbcc43bfe Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Andrey Zhizhikin <andrey.z@gmail.com> | ||
| 3 | Date: Mon, 27 Jan 2020 10:22:35 +0000 | ||
| 4 | Subject: [PATCH] opencv: resolve missing opencv data dir in yocto build | ||
| 5 | |||
| 6 | When Yocto build is performed, opencv searches for data dir using simple | ||
| 7 | 'test' command, this fails because pkg-config provides an absolute | ||
| 8 | path on the target which needs to be prepended by PKG_CONFIG_SYSROOT_DIR | ||
| 9 | in order for the 'test' utility to pick up the absolute path. | ||
| 10 | |||
| 11 | Upstream-Status: Inappropriate [OE-specific] | ||
| 12 | |||
| 13 | Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com> | ||
| 14 | Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> | ||
| 15 | |||
| 16 | --- | ||
| 17 | ext/opencv/meson.build | 3 +++ | ||
| 18 | 1 file changed, 3 insertions(+) | ||
| 19 | |||
| 20 | diff --git a/ext/opencv/meson.build b/ext/opencv/meson.build | ||
| 21 | index 1d86b90..b5c8b95 100644 | ||
| 22 | --- a/ext/opencv/meson.build | ||
| 23 | +++ b/ext/opencv/meson.build | ||
| 24 | @@ -87,6 +87,9 @@ if opencv_found | ||
| 25 | opencv_prefix = opencv_dep.get_variable('prefix') | ||
| 26 | gstopencv_cargs += ['-DOPENCV_PREFIX="' + opencv_prefix + '"'] | ||
| 27 | |||
| 28 | + pkgconf_sysroot = run_command(python3, '-c', 'import os; print(os.environ.get("PKG_CONFIG_SYSROOT_DIR"))').stdout().strip() | ||
| 29 | + opencv_prefix = pkgconf_sysroot + opencv_prefix | ||
| 30 | + | ||
| 31 | # Check the data dir used by opencv for its xml data files | ||
| 32 | # Use prefix from pkg-config to be compatible with cross-compilation | ||
| 33 | r = run_command('test', '-d', opencv_prefix + '/share/opencv', check: false) | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.26.0.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.26.6.imx.bb index 1c4ee72d0..36db56eb8 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.26.0.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.26.6.imx.bb | |||
| @@ -5,8 +5,8 @@ | |||
| 5 | ########### OE-core copy ################## | 5 | ########### OE-core copy ################## |
| 6 | # Upstream hash: 937817e5164f8af8452aec03ae3c45cb23d63df9 | 6 | # Upstream hash: 937817e5164f8af8452aec03ae3c45cb23d63df9 |
| 7 | 7 | ||
| 8 | require gstreamer1.0-plugins-common.inc | 8 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc |
| 9 | require gstreamer1.0-plugins-license.inc | 9 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-license.inc |
| 10 | 10 | ||
| 11 | SUMMARY = "'Bad' GStreamer plugins and helper libraries " | 11 | SUMMARY = "'Bad' GStreamer plugins and helper libraries " |
| 12 | HOMEPAGE = "https://gstreamer.freedesktop.org/" | 12 | HOMEPAGE = "https://gstreamer.freedesktop.org/" |
| @@ -19,8 +19,6 @@ SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad | |||
| 19 | " | 19 | " |
| 20 | SRC_URI[sha256sum] = "e64e75cdafd7ff2fc7fc34e855b06b1e3ed227cc06fa378d17bbcd76780c338c" | 20 | SRC_URI[sha256sum] = "e64e75cdafd7ff2fc7fc34e855b06b1e3ed227cc06fa378d17bbcd76780c338c" |
| 21 | 21 | ||
| 22 | S = "${WORKDIR}/gst-plugins-bad-${PV}" | ||
| 23 | |||
| 24 | LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later" | 22 | LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later" |
| 25 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" | 23 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" |
| 26 | 24 | ||
| @@ -181,16 +179,18 @@ DEFAULT_PREFERENCE = "-1" | |||
| 181 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=69333daa044cb77e486cc36129f7a770" | 179 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=69333daa044cb77e486cc36129f7a770" |
| 182 | 180 | ||
| 183 | SRC_URI:remove = "https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${PV}.tar.xz \ | 181 | SRC_URI:remove = "https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${PV}.tar.xz \ |
| 184 | file://0001-fix-maybe-uninitialized-warnings-when-compiling-with.patch \ | 182 | file://0001-fix-maybe-uninitialized-warnings-when-compiling-with.patch \ |
| 185 | file://0002-avoid-including-sys-poll.h-directly.patch \ | 183 | file://0002-avoid-including-sys-poll.h-directly.patch \ |
| 186 | file://0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch \ | 184 | file://0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch \ |
| 187 | " | 185 | " |
| 188 | SRC_URI:prepend = "${GST1.0-PLUGINS-BAD_SRC};branch=${SRCBRANCH} " | 186 | SRC_URI:prepend = "${GST1.0-PLUGINS-BAD_SRC};branch=${SRCBRANCH} " |
| 189 | GST1.0-PLUGINS-BAD_SRC ?= "gitsm://github.com/nxp-imx/gst-plugins-bad.git;protocol=https" | ||
| 190 | SRCBRANCH = "MM_04.10.0_2505_L6.12.20" | ||
| 191 | SRCREV = "4320364e6be53cae81ac2bca3ce0e09cf8707590" | ||
| 192 | 187 | ||
| 193 | S = "${UNPACKDIR}/${BP}" | 188 | SRC_URI:append:mx93-nxp-bsp = "file://0001-MMFMWK-9590-gstcuda-disable-gir-build-for-cuda-plugi.patch" |
| 189 | SRC_URI:append:mx943-nxp-bsp = "file://0001-MMFMWK-9590-gstcuda-disable-gir-build-for-cuda-plugi.patch" | ||
| 190 | |||
| 191 | GST1.0-PLUGINS-BAD_SRC ?= "gitsm://github.com/nxp-imx/gst-plugins-bad.git;protocol=https" | ||
| 192 | SRCBRANCH = "MM_04.10.03_2512_L6.18.2" | ||
| 193 | SRCREV = "81b6888efe936153b88c32b22a12d60bf9395054" | ||
| 194 | 194 | ||
| 195 | inherit use-imx-headers | 195 | inherit use-imx-headers |
| 196 | 196 | ||
| @@ -202,6 +202,8 @@ PACKAGECONFIG_REMOVE ?= " \ | |||
| 202 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '', 'gl', d)} \ | 202 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '', 'gl', d)} \ |
| 203 | " | 203 | " |
| 204 | PACKAGECONFIG:remove = "${PACKAGECONFIG_REMOVE}" | 204 | PACKAGECONFIG:remove = "${PACKAGECONFIG_REMOVE}" |
| 205 | PACKAGECONFIG:remove:mx93-nxp-bsp = "gl" | ||
| 206 | PACKAGECONFIG:remove:mx943-nxp-bsp = "gl" | ||
| 205 | PACKAGECONFIG:append:mx8-nxp-bsp = " kms tinycompress" | 207 | PACKAGECONFIG:append:mx8-nxp-bsp = " kms tinycompress" |
| 206 | 208 | ||
| 207 | PACKAGECONFIG:append = " ${PACKAGECONFIG_G2D}" | 209 | PACKAGECONFIG:append = " ${PACKAGECONFIG_G2D}" |
| @@ -220,4 +222,5 @@ EXTRA_OEMESON:remove = " \ | |||
| 220 | " | 222 | " |
| 221 | 223 | ||
| 222 | COMPATIBLE_MACHINE = "(imx-nxp-bsp)" | 224 | COMPATIBLE_MACHINE = "(imx-nxp-bsp)" |
| 225 | |||
| 223 | ########### End of i.MX overrides ######### | 226 | ########### End of i.MX overrides ######### |
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-MMFMWK-9590-gstgl-1.0-disable-gir-build-for-gl-plugi.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-MMFMWK-9590-gstgl-1.0-disable-gir-build-for-gl-plugi.patch new file mode 100644 index 000000000..3f709d84f --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-MMFMWK-9590-gstgl-1.0-disable-gir-build-for-gl-plugi.patch | |||
| @@ -0,0 +1,67 @@ | |||
| 1 | From f85821d405ba287acc01b1c80205470f086b3d61 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Haihua Hu <jared.hu@nxp.com> | ||
| 3 | Date: Fri, 6 Feb 2026 15:12:52 +0900 | ||
| 4 | Subject: [PATCH 1/5] MMFMWK-9590 gstgl-1.0: disable gir build for gl plugin | ||
| 5 | libraries | ||
| 6 | |||
| 7 | This is a workaround to only display gl gir build to avoid totally | ||
| 8 | disable base library gir build. mesa-rvgpu-emu patch break gl gir | ||
| 9 | build | ||
| 10 | |||
| 11 | Upstream-Status: Inappropriate [i.MX specific] | ||
| 12 | --- | ||
| 13 | gst-libs/gst/gl/meson.build | 10 +++++----- | ||
| 14 | 1 file changed, 5 insertions(+), 5 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/gst-libs/gst/gl/meson.build b/gst-libs/gst/gl/meson.build | ||
| 17 | index 837cf484e..ef981c8e3 100644 | ||
| 18 | --- a/gst-libs/gst/gl/meson.build | ||
| 19 | +++ b/gst-libs/gst/gl/meson.build | ||
| 20 | @@ -1193,7 +1193,7 @@ if build_gstgl | ||
| 21 | description : 'Streaming media framework, OpenGL plugins libraries (OpenGL Prototypes)', | ||
| 22 | ) | ||
| 23 | |||
| 24 | - if build_gir | ||
| 25 | + if false | ||
| 26 | gir = { | ||
| 27 | 'sources' : gl_sources + [gl_enumtypes_h] + [gl_enumtypes_c] + gir_gl_headers, | ||
| 28 | 'namespace' : 'GstGL', | ||
| 29 | @@ -1239,7 +1239,7 @@ if build_gstgl | ||
| 30 | description : 'Streaming media framework, OpenGL plugins libraries (X11 specifics)', | ||
| 31 | ) | ||
| 32 | gl_x11_gir = [] | ||
| 33 | - if build_gir | ||
| 34 | + if false | ||
| 35 | |||
| 36 | doc_sources = [] | ||
| 37 | foreach s: gl_x11_sources + gl_x11_headers | ||
| 38 | @@ -1286,7 +1286,7 @@ if build_gstgl | ||
| 39 | description : 'Streaming media framework, OpenGL plugins libraries (Wayland specifics)', | ||
| 40 | ) | ||
| 41 | gl_wayland_gir = [] | ||
| 42 | - if build_gir | ||
| 43 | + if false | ||
| 44 | doc_sources = [] | ||
| 45 | foreach s: gl_wayland_sources + gl_wayland_headers | ||
| 46 | doc_sources += s.full_path() | ||
| 47 | @@ -1331,7 +1331,7 @@ if build_gstgl | ||
| 48 | description : 'Streaming media framework, OpenGL plugins libraries (EGL specifics)', | ||
| 49 | ) | ||
| 50 | gl_egl_gir = [] | ||
| 51 | - if build_gir | ||
| 52 | + if false | ||
| 53 | gir = { | ||
| 54 | 'sources' : gl_egl_sources + gl_egl_headers, | ||
| 55 | 'namespace' : 'GstGLEGL', | ||
| 56 | @@ -1367,7 +1367,7 @@ if build_gstgl | ||
| 57 | description : 'Streaming media framework, OpenGL plugins libraries (Vivante Framebuffer specifics)', | ||
| 58 | ) | ||
| 59 | gl_viv_fb_gir = [] | ||
| 60 | - if build_gir | ||
| 61 | + if false | ||
| 62 | gir = { | ||
| 63 | 'sources' : gl_viv_fb_sources + gl_viv_fb_headers, | ||
| 64 | 'namespace' : 'GstGLVivFB', | ||
| 65 | -- | ||
| 66 | 2.34.1 | ||
| 67 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.26.0.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.26.6.imx.bb index 5c2492638..0cfa8c064 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.26.0.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.26.6.imx.bb | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ########### OE-core copy ################## | 5 | ########### OE-core copy ################## |
| 6 | # Upstream hash: 937817e5164f8af8452aec03ae3c45cb23d63df9 | 6 | # Upstream hash: 937817e5164f8af8452aec03ae3c45cb23d63df9 |
| 7 | 7 | ||
| 8 | require gstreamer1.0-plugins-common.inc | 8 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc |
| 9 | 9 | ||
| 10 | SUMMARY = "'Base' GStreamer plugins and helper libraries" | 10 | SUMMARY = "'Base' GStreamer plugins and helper libraries" |
| 11 | HOMEPAGE = "https://gstreamer.freedesktop.org/" | 11 | HOMEPAGE = "https://gstreamer.freedesktop.org/" |
| @@ -20,8 +20,6 @@ SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-ba | |||
| 20 | " | 20 | " |
| 21 | SRC_URI[sha256sum] = "edd4338b45c26a9af28c0d35aab964a024c3884ba6f520d8428df04212c8c93a" | 21 | SRC_URI[sha256sum] = "edd4338b45c26a9af28c0d35aab964a024c3884ba6f520d8428df04212c8c93a" |
| 22 | 22 | ||
| 23 | S = "${WORKDIR}/gst-plugins-base-${PV}" | ||
| 24 | |||
| 25 | DEPENDS += "iso-codes util-linux zlib" | 23 | DEPENDS += "iso-codes util-linux zlib" |
| 26 | 24 | ||
| 27 | inherit gobject-introspection | 25 | inherit gobject-introspection |
| @@ -117,11 +115,12 @@ SRC_URI:remove = " \ | |||
| 117 | file://0002-ssaparse-enhance-SSA-text-lines-parsing.patch" | 115 | file://0002-ssaparse-enhance-SSA-text-lines-parsing.patch" |
| 118 | SRC_URI:prepend = "${GST1.0-PLUGINS-BASE_SRC};branch=${SRCBRANCH} " | 116 | SRC_URI:prepend = "${GST1.0-PLUGINS-BASE_SRC};branch=${SRCBRANCH} " |
| 119 | 117 | ||
| 120 | GST1.0-PLUGINS-BASE_SRC ?= "gitsm://github.com/nxp-imx/gst-plugins-base.git;protocol=https" | 118 | SRC_URI:append:mx93-nxp-bsp = "file://0001-MMFMWK-9590-gstgl-1.0-disable-gir-build-for-gl-plugi.patch" |
| 121 | SRCBRANCH = "MM_04.10.0_2505_L6.12.20" | 119 | SRC_URI:append:mx943-nxp-bsp = "file://0001-MMFMWK-9590-gstgl-1.0-disable-gir-build-for-gl-plugi.patch" |
| 122 | SRCREV = "bbe6aa6f5b666fda0b172c3e1f417c7eadb16549" | ||
| 123 | 120 | ||
| 124 | S = "${UNPACKDIR}/${BP}" | 121 | GST1.0-PLUGINS-BASE_SRC ?= "gitsm://github.com/nxp-imx/gst-plugins-base.git;protocol=https" |
| 122 | SRCBRANCH = "MM_04.10.03_2512_L6.18.2" | ||
| 123 | SRCREV = "48718c61610e3628f3f162bb8d84ae213ae8516f" | ||
| 125 | 124 | ||
| 126 | inherit use-imx-headers | 125 | inherit use-imx-headers |
| 127 | 126 | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.26.0.imx.bbappend b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.26.6.imx.bbappend index 528d7e1a3..528d7e1a3 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.26.0.imx.bbappend +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.26.6.imx.bbappend | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc deleted file mode 100644 index 54dd92873..000000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc +++ /dev/null | |||
| @@ -1,47 +0,0 @@ | |||
| 1 | # This .inc file contains the common setup for the gstreamer1.0-plugins-* | ||
| 2 | # plugin set recipes. | ||
| 3 | |||
| 4 | # SUMMARY is set in the actual .bb recipes | ||
| 5 | HOMEPAGE = "https://gstreamer.freedesktop.org/" | ||
| 6 | BUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=Gstreamer" | ||
| 7 | SECTION = "multimedia" | ||
| 8 | |||
| 9 | DEPENDS = "gstreamer1.0 glib-2.0-native" | ||
| 10 | |||
| 11 | inherit gettext meson pkgconfig upstream-version-is-even | ||
| 12 | |||
| 13 | require gstreamer1.0-plugins-packaging.inc | ||
| 14 | |||
| 15 | # Orc enables runtime JIT compilation of data processing routines from Orc | ||
| 16 | # bytecode to SIMD instructions for various architectures (currently SSE, MMX, | ||
| 17 | # MIPS, Altivec and NEON are supported). | ||
| 18 | # This value is used in the PACKAGECONFIG values for each plugin set recipe. | ||
| 19 | # By modifying it, Orc can be enabled/disabled in all of these recipes at once. | ||
| 20 | GSTREAMER_ORC ?= "orc" | ||
| 21 | # workaround to disable orc on mips to fix the build failure | ||
| 22 | # {standard input}: Assembler messages: | ||
| 23 | # {standard input}:46587: Error: branch out of range | ||
| 24 | GSTREAMER_ORC:mips = "" | ||
| 25 | PACKAGECONFIG[orc] = "-Dorc=enabled,-Dorc=disabled,orc orc-native" | ||
| 26 | |||
| 27 | # TODO: put this in a gettext.bbclass patch (with variables to allow for | ||
| 28 | # configuring the option name and the enabled/disabled values). | ||
| 29 | def gettext_oemeson(d): | ||
| 30 | if d.getVar('USE_NLS') == 'no': | ||
| 31 | return '-Dnls=disabled' | ||
| 32 | # Remove the NLS bits if USE_NLS is no or INHIBIT_DEFAULT_DEPS is set | ||
| 33 | if d.getVar('INHIBIT_DEFAULT_DEPS') and not oe.utils.inherits(d, 'cross-canadian'): | ||
| 34 | return '-Dnls=disabled' | ||
| 35 | return '-Dnls=enabled' | ||
| 36 | |||
| 37 | # Not all plugin sets contain examples, so the -Dexamples | ||
| 38 | # option needs to be added conditionally. | ||
| 39 | GST_PLUGIN_SET_HAS_EXAMPLES ?= "1" | ||
| 40 | |||
| 41 | EXTRA_OEMESON += " \ | ||
| 42 | ${@bb.utils.contains('GST_PLUGIN_SET_HAS_EXAMPLES', '1', '-Dexamples=disabled', '', d)} \ | ||
| 43 | ${@gettext_oemeson(d)} \ | ||
| 44 | " | ||
| 45 | |||
| 46 | GIR_MESON_ENABLE_FLAG = "enabled" | ||
| 47 | GIR_MESON_DISABLE_FLAG = "disabled" | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.26.0.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.26.6.imx.bb index 7c921d97c..269761536 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.26.0.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.26.6.imx.bb | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ########### OE-core copy ################## | 5 | ########### OE-core copy ################## |
| 6 | # Upstream hash: 937817e5164f8af8452aec03ae3c45cb23d63df9 | 6 | # Upstream hash: 937817e5164f8af8452aec03ae3c45cb23d63df9 |
| 7 | 7 | ||
| 8 | require gstreamer1.0-plugins-common.inc | 8 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc |
| 9 | 9 | ||
| 10 | SUMMARY = "'Good' GStreamer plugins" | 10 | SUMMARY = "'Good' GStreamer plugins" |
| 11 | HOMEPAGE = "https://gstreamer.freedesktop.org/" | 11 | HOMEPAGE = "https://gstreamer.freedesktop.org/" |
| @@ -17,7 +17,7 @@ SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-go | |||
| 17 | 17 | ||
| 18 | SRC_URI[sha256sum] = "b67b31313a54c6929b82969d41d3cfdf2f58db573fb5f491e6bba5d84aea0778" | 18 | SRC_URI[sha256sum] = "b67b31313a54c6929b82969d41d3cfdf2f58db573fb5f491e6bba5d84aea0778" |
| 19 | 19 | ||
| 20 | S = "${WORKDIR}/gst-plugins-good-${PV}" | 20 | S = "${UNPACKDIR}/gst-plugins-good-${PV}" |
| 21 | 21 | ||
| 22 | LICENSE = "LGPL-2.1-or-later" | 22 | LICENSE = "LGPL-2.1-or-later" |
| 23 | LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ | 23 | LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ |
| @@ -98,12 +98,16 @@ LIC_FILES_CHKSUM = " \ | |||
| 98 | file://gst/replaygain/rganalysis.c;beginline=1;endline=23;md5=b60ebefd5b2f5a8e0cab6bfee391a5fe \ | 98 | file://gst/replaygain/rganalysis.c;beginline=1;endline=23;md5=b60ebefd5b2f5a8e0cab6bfee391a5fe \ |
| 99 | " | 99 | " |
| 100 | # Enable pulsesink in gstreamer | 100 | # Enable pulsesink in gstreamer |
| 101 | PACKAGECONFIG:append = "${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', ' pulseaudio', '', d)}" | 101 | PACKAGECONFIG:append = " pulseaudio" |
| 102 | 102 | ||
| 103 | # fb implementation of v4l2 uses libdrm | 103 | # fb implementation of v4l2 uses libdrm |
| 104 | DEPENDS += "${@bb.utils.contains('PACKAGECONFIG', 'v4l2', '${DEPENDS_V4L2}', '', d)}" | 104 | DEPENDS += "${@bb.utils.contains('PACKAGECONFIG', 'v4l2', '${DEPENDS_V4L2}', '', d)}" |
| 105 | DEPENDS_V4L2 = "${@bb.utils.contains_any('DISTRO_FEATURES', 'wayland x11', '', 'libdrm', d)}" | 105 | DEPENDS_V4L2 = "${@bb.utils.contains_any('DISTRO_FEATURES', 'wayland x11', '', 'libdrm', d)}" |
| 106 | 106 | ||
| 107 | # FIXME: imx93/943 DISTRO_FEATURES contains x11 but v4l2 implement by libdrm ? | ||
| 108 | DEPENDS:append:mx93-nxp-bsp = " libdrm" | ||
| 109 | DEPENDS:append:mx943-nxp-bsp = " libdrm" | ||
| 110 | |||
| 107 | SRC_URI:remove = "https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-${PV}.tar.xz \ | 111 | SRC_URI:remove = "https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-${PV}.tar.xz \ |
| 108 | file://0001-qt-include-ext-qt-gstqtgl.h-instead-of-gst-gl-gstglf.patch \ | 112 | file://0001-qt-include-ext-qt-gstqtgl.h-instead-of-gst-gl-gstglf.patch \ |
| 109 | file://0001-v4l2-Define-ioctl_req_t-for-posix-linux-case.patch \ | 113 | file://0001-v4l2-Define-ioctl_req_t-for-posix-linux-case.patch \ |
| @@ -111,8 +115,8 @@ SRC_URI:remove = "https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plu | |||
| 111 | 115 | ||
| 112 | SRC_URI:prepend = "${GST1.0-PLUGINS-GOOD_SRC};branch=${SRCBRANCH} " | 116 | SRC_URI:prepend = "${GST1.0-PLUGINS-GOOD_SRC};branch=${SRCBRANCH} " |
| 113 | GST1.0-PLUGINS-GOOD_SRC ?= "gitsm://github.com/nxp-imx/gst-plugins-good.git;protocol=https" | 117 | GST1.0-PLUGINS-GOOD_SRC ?= "gitsm://github.com/nxp-imx/gst-plugins-good.git;protocol=https" |
| 114 | SRCBRANCH = "MM_04.10.0_2505_L6.12.20" | 118 | SRCBRANCH = "MM_04.10.03_2512_L6.18.2" |
| 115 | SRCREV = "6a0df1aee0ef2477dbacedd79df08c5bcb648e55" | 119 | SRCREV = "447aebbd3c2b12a72f00316d60d7c86600a330f6" |
| 116 | 120 | ||
| 117 | S = "${UNPACKDIR}/${BP}" | 121 | S = "${UNPACKDIR}/${BP}" |
| 118 | 122 | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_2.2.0.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_2.2.0.bb deleted file mode 100644 index cc2cedfd5..000000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_2.2.0.bb +++ /dev/null | |||
| @@ -1,66 +0,0 @@ | |||
| 1 | # Copyright (C) 2018 O.S. Systems Software LTDA. | ||
| 2 | DESCRIPTION = "GStreamer 1.0 plugins for i.MX platforms" | ||
| 3 | LICENSE = "LGPL-2.0-or-later" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=55ca817ccb7d5b5b66355690e9abc605" | ||
| 5 | SECTION = "multimedia" | ||
| 6 | DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base libimxdmabuffer" | ||
| 7 | # add the audioparsers and the videoparsersbad plugins as RDEPENDS ; audioparsers | ||
| 8 | # for the uniaudio decoder, videoparsersbad for the VPU video decoder | ||
| 9 | # the gstreamer1.0-plugins-imx RDEPENDS is necessary to ensure the -good recipe is | ||
| 10 | # built (it is not a compile-time dependency however, hence RDEPENDS and not DEPENDS) | ||
| 11 | RDEPENDS:gstreamer1.0-plugins-imx = "gstreamer1.0-plugins-good gstreamer1.0-plugins-bad" | ||
| 12 | RDEPENDS:gstreamer1.0-plugins-imx-imxaudio = "gstreamer1.0-plugins-good-audioparsers" | ||
| 13 | RDEPENDS:gstreamer1.0-plugins-imx-imxvpu = "gstreamer1.0-plugins-bad-videoparsersbad" | ||
| 14 | |||
| 15 | PV .= "+git${SRCPV}" | ||
| 16 | |||
| 17 | SRCBRANCH ?= "master" | ||
| 18 | SRCREV = "ce4f86e60f12c56574f727f3317fa8aa30a11387" | ||
| 19 | SRC_URI = "git://github.com/Freescale/gstreamer-imx.git;branch=${SRCBRANCH};protocol=https" | ||
| 20 | |||
| 21 | inherit pkgconfig meson use-imx-headers | ||
| 22 | |||
| 23 | # libg2d on i.MX8 SoCs with a DPU is emulated via the DPU. | ||
| 24 | # That particular libg2d .so depends on libdrm, however. | ||
| 25 | # Also, due to behavioral differences, an additional flag | ||
| 26 | # is needed to improve performance. | ||
| 27 | LIBG2D_DPU_OPTION = "-Dg2d-based-on-dpu=false" | ||
| 28 | LIBG2D_DEPENDENCIES = "virtual/libg2d" | ||
| 29 | LIBG2D_DPU_OPTION:imxdpu = "-Dg2d-based-on-dpu=true" | ||
| 30 | LIBG2D_DEPENDENCIES:imxdpu = "virtual/libg2d libdrm" | ||
| 31 | |||
| 32 | # v4l2-amphion and v4l2-isi are meant for the Amphion Malone | ||
| 33 | # VPU decoder and the ISI drivers in older kernels, which had | ||
| 34 | # lots of bugs that required nontrivial workarounds. In the | ||
| 35 | # kernels in this release, newer drivers are present, which | ||
| 36 | # obviate the need for these special elements. | ||
| 37 | EXTRA_OEMESON += "-Dimx-headers-path=${STAGING_INCDIR_IMX} -Dv4l2-amphion=disabled -Dv4l2-isi=false" | ||
| 38 | |||
| 39 | PACKAGECONFIG ?= "uniaudiodec" | ||
| 40 | PACKAGECONFIG:append:imxgpu2d = " g2d" | ||
| 41 | PACKAGECONFIG:append:imxvpu = " vpu" | ||
| 42 | PACKAGECONFIG:append:imxipu = " ipu" | ||
| 43 | PACKAGECONFIG:append:imxpxp = " pxp" | ||
| 44 | # The custom imxv4l2 source and sink elements are only | ||
| 45 | # available on the i.MX6. | ||
| 46 | # The 2D blitter sinks require an MXC framebuffer, which | ||
| 47 | # is not available anymore on the i.MX8 (since these SoCs | ||
| 48 | # now use KMS instead of the old Linux framebuffer). | ||
| 49 | PACKAGECONFIG:append:mx6-nxp-bsp = " imx2dvideosink v4l2-mxc-source-sink" | ||
| 50 | PACKAGECONFIG:append:mx7-nxp-bsp = " imx2dvideosink" | ||
| 51 | |||
| 52 | PACKAGECONFIG[g2d] = "-Dg2d=enabled ${LIBG2D_DPU_OPTION},-Dg2d=disabled,${LIBG2D_DEPENDENCIES}" | ||
| 53 | PACKAGECONFIG[pxp] = "-Dpxp=enabled,-Dpxp=disabled," | ||
| 54 | PACKAGECONFIG[ipu] = "-Dipu=enabled,-Dipu=disabled," | ||
| 55 | PACKAGECONFIG[vpu] = "-Dvpu=enabled,-Dvpu=disabled,libimxvpuapi2" | ||
| 56 | PACKAGECONFIG[imx2dvideosink] = "-Dimx2d-videosink=true,-Dimx2d-videosink=false," | ||
| 57 | PACKAGECONFIG[v4l2-mxc-source-sink] = "-Dv4l2-mxc-source-sink=true,-Dv4l2-mxc-source-sink=false," | ||
| 58 | PACKAGECONFIG[uniaudiodec] = "-Duniaudiodec=enabled,-Duniaudiodec=disabled,imx-codec" | ||
| 59 | PACKAGECONFIG[mp3encoder] = "-Dmp3encoder=enabled,-Dmp3encoder=disabled,imx-codec" | ||
| 60 | |||
| 61 | require gstreamer1.0-plugins-packaging.inc | ||
| 62 | |||
| 63 | # the following line is required to produce one package for each plugin | ||
| 64 | PACKAGES_DYNAMIC = "^${PN}-.*" | ||
| 65 | |||
| 66 | COMPATIBLE_MACHINE = "(mx6dl-nxp-bsp|mx6q-nxp-bsp|mx6sl-nxp-bsp|mx6sx-nxp-bsp|mx6ul-nxp-bsp|mx6ull-nxp-bsp|mx7d-nxp-bsp|mx8-nxp-bsp)" | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-license.inc b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-license.inc deleted file mode 100644 index 8b1c00111..000000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-license.inc +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | # This .inc file contains functionality for automatically setting | ||
| 2 | # the the license of all plugins according to the GSTREAMER_GPL. | ||
| 3 | |||
| 4 | PACKAGESPLITFUNCS += "set_gstreamer_license" | ||
| 5 | |||
| 6 | python set_gstreamer_license () { | ||
| 7 | import oe.utils | ||
| 8 | pn = d.getVar('PN') + '-' | ||
| 9 | gpl_plugins_names = [pn+plugin for plugin in d.getVar('GSTREAMER_GPL').split()] | ||
| 10 | for pkg in oe.utils.packages_filter_out_system(d): | ||
| 11 | if pkg in gpl_plugins_names: | ||
| 12 | d.setVar('LICENSE:' + pkg, 'GPL-2.0-or-later') | ||
| 13 | else: | ||
| 14 | d.setVar('LICENSE:' + pkg, 'LGPL-2.1-or-later') | ||
| 15 | } | ||
| 16 | |||
| 17 | EXTRA_OEMESON += " \ | ||
| 18 | ${@bb.utils.contains_any('PACKAGECONFIG', "${GSTREAMER_GPL}", '-Dgpl=enabled', '-Dgpl=disabled', d)} \ | ||
| 19 | " | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-packaging.inc b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-packaging.inc deleted file mode 100644 index d77aeed8a..000000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-packaging.inc +++ /dev/null | |||
| @@ -1,73 +0,0 @@ | |||
| 1 | # This .inc file contains functionality for automatically splitting | ||
| 2 | # built plugins into individual packages for each plugin. A -meta | ||
| 3 | # package is also set up that has no files of its own, but contains | ||
| 4 | # the names of all plugin packages in its RDEPENDS list. | ||
| 5 | # | ||
| 6 | # This is mainly used by the gstreamer1.0-plugins-* plugin set recipes, | ||
| 7 | # but can be used in any recipe that produces GStreamer plugins. | ||
| 8 | |||
| 9 | # Dynamically generate packages for all enabled plugins | ||
| 10 | PACKAGES_DYNAMIC = "^${PN}-.* ^libgst.*" | ||
| 11 | |||
| 12 | PACKAGESPLITFUNCS =+ "split_gstreamer10_packages" | ||
| 13 | PACKAGESPLITFUNCS += "set_gstreamer10_metapkg_rdepends" | ||
| 14 | |||
| 15 | python split_gstreamer10_packages () { | ||
| 16 | gst_libdir = d.expand('${libdir}/gstreamer-1.0') | ||
| 17 | postinst = d.getVar('plugin_postinst') | ||
| 18 | glibdir = d.getVar('libdir') | ||
| 19 | |||
| 20 | # GStreamer libraries | ||
| 21 | do_split_packages(d, glibdir, r'^lib(.*)\.so\.*', 'lib%s', 'GStreamer 1.0 %s library', extra_depends='', allow_links=True) | ||
| 22 | # GStreamer plugin shared objects | ||
| 23 | do_split_packages(d, gst_libdir, r'libgst(.*)\.so$', d.expand('${PN}-%s'), 'GStreamer 1.0 plugin for %s', postinst=postinst, extra_depends='') | ||
| 24 | # GObject introspection files for GStreamer plugins | ||
| 25 | do_split_packages(d, glibdir+'/girepository-1.0', r'Gst(.*)-1.0\.typelib$', d.expand('${PN}-%s-typelib'), 'GStreamer 1.0 typelib file for %s', postinst=postinst, extra_depends='') | ||
| 26 | # Static GStreamer libraries for development | ||
| 27 | do_split_packages(d, gst_libdir, r'libgst(.*)\.a$', d.expand('${PN}-%s-staticdev'), 'GStreamer 1.0 plugin for %s (static development files)', extra_depends='${PN}-staticdev') | ||
| 28 | } | ||
| 29 | |||
| 30 | python set_gstreamer10_metapkg_rdepends () { | ||
| 31 | import os | ||
| 32 | import oe.utils | ||
| 33 | |||
| 34 | # Go through all generated packages (excluding the main package and | ||
| 35 | # the -meta package itself) and add them to the -meta package as RDEPENDS. | ||
| 36 | |||
| 37 | pn = d.getVar('PN') | ||
| 38 | metapkg = pn + '-meta' | ||
| 39 | d.setVar('ALLOW_EMPTY:' + metapkg, "1") | ||
| 40 | d.setVar('FILES:' + metapkg, "") | ||
| 41 | exclude = [ pn, pn + '-meta' ] | ||
| 42 | metapkg_rdepends = [] | ||
| 43 | pkgdest = d.getVar('PKGDEST') | ||
| 44 | for pkg in oe.utils.packages_filter_out_system(d): | ||
| 45 | if pkg not in exclude and pkg not in metapkg_rdepends: | ||
| 46 | # See if the package is empty by looking at the contents of its PKGDEST subdirectory. | ||
| 47 | # If this subdirectory is empty, then the package is. | ||
| 48 | # Empty packages do not get added to the meta package's RDEPENDS | ||
| 49 | pkgdir = os.path.join(pkgdest, pkg) | ||
| 50 | if os.path.exists(pkgdir): | ||
| 51 | dir_contents = os.listdir(pkgdir) or [] | ||
| 52 | else: | ||
| 53 | dir_contents = [] | ||
| 54 | is_empty = len(dir_contents) == 0 | ||
| 55 | if not is_empty: | ||
| 56 | metapkg_rdepends.append(pkg) | ||
| 57 | d.setVar('RDEPENDS:' + metapkg, ' '.join(metapkg_rdepends)) | ||
| 58 | d.setVar('DESCRIPTION:' + metapkg, pn + ' meta package') | ||
| 59 | } | ||
| 60 | |||
| 61 | # each plugin-dev depends on PN-dev, plugin-staticdev on PN-staticdev | ||
| 62 | # so we need them even when empty (like in gst-plugins-good case) | ||
| 63 | ALLOW_EMPTY:${PN} = "1" | ||
| 64 | ALLOW_EMPTY:${PN}-dev = "1" | ||
| 65 | ALLOW_EMPTY:${PN}-staticdev = "1" | ||
| 66 | |||
| 67 | PACKAGES += "${PN}-apps ${PN}-meta ${PN}-glib" | ||
| 68 | |||
| 69 | FILES:${PN} = "" | ||
| 70 | FILES:${PN}-apps = "${bindir}" | ||
| 71 | FILES:${PN}-glib = "${datadir}/glib-2.0" | ||
| 72 | |||
| 73 | RRECOMMENDS:${PN} += "${PN}-meta" | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.26.0.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.26.6.bb index 1f5956ab4..71de57530 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.26.0.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.26.6.bb | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | require gstreamer1.0-plugins-common.inc | 1 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc |
| 2 | require gstreamer1.0-plugins-license.inc | 2 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-license.inc |
| 3 | 3 | ||
| 4 | SUMMARY = "'Ugly GStreamer plugins" | 4 | SUMMARY = "'Ugly GStreamer plugins" |
| 5 | HOMEPAGE = "https://gstreamer.freedesktop.org/" | 5 | HOMEPAGE = "https://gstreamer.freedesktop.org/" |
| @@ -12,11 +12,12 @@ LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later" | |||
| 12 | LICENSE_FLAGS = "commercial" | 12 | LICENSE_FLAGS = "commercial" |
| 13 | 13 | ||
| 14 | SRC_URI = " \ | 14 | SRC_URI = " \ |
| 15 | https://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-${@get_gst_ver("${PV}")}.tar.xz \ | 15 | https://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-${PV}.tar.xz \ |
| 16 | " | 16 | " |
| 17 | SRC_URI[sha256sum] = "a86b51c8454a813120848c803421f327d8c07aabcae461e0597cc49398c0fcde" | ||
| 18 | 17 | ||
| 19 | S = "${UNPACKDIR}/gst-plugins-ugly-${@get_gst_ver("${PV}")}" | 18 | SRC_URI[sha256sum] = "95032eee4580bb9826c008cbce5a2c3a78b980abb270c96a19b645f77255c491" |
| 19 | |||
| 20 | S = "${UNPACKDIR}/gst-plugins-ugly-${PV}" | ||
| 20 | 21 | ||
| 21 | DEPENDS += "gstreamer1.0-plugins-base" | 22 | DEPENDS += "gstreamer1.0-plugins-base" |
| 22 | 23 | ||
| @@ -39,11 +40,5 @@ EXTRA_OEMESON += " \ | |||
| 39 | -Dsidplay=disabled \ | 40 | -Dsidplay=disabled \ |
| 40 | " | 41 | " |
| 41 | 42 | ||
| 42 | # Drop .imx from PV | ||
| 43 | def get_gst_ver(v): | ||
| 44 | return oe.utils.trim_version(v, 3) | ||
| 45 | |||
| 46 | FILES:${PN}-amrnb += "${datadir}/gstreamer-1.0/presets/GstAmrnbEnc.prs" | 43 | FILES:${PN}-amrnb += "${datadir}/gstreamer-1.0/presets/GstAmrnbEnc.prs" |
| 47 | FILES:${PN}-x264 += "${datadir}/gstreamer-1.0/presets/GstX264Enc.prs" | 44 | FILES:${PN}-x264 += "${datadir}/gstreamer-1.0/presets/GstX264Enc.prs" |
| 48 | |||
| 49 | COMPATIBLE_MACHINE = "(imx-nxp-bsp)" | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.26.0.imx.bbappend b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.26.6.bbappend index ea144b396..ea144b396 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.26.0.imx.bbappend +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.26.6.bbappend | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-python_1.26.0.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-python_1.26.6.bb index 388ee81e6..89306c928 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-python_1.26.0.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-python_1.26.6.bb | |||
| @@ -7,8 +7,8 @@ SECTION = "multimedia" | |||
| 7 | LICENSE = "LGPL-2.1-or-later" | 7 | LICENSE = "LGPL-2.1-or-later" |
| 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=c34deae4e395ca07e725ab0076a5f740" | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=c34deae4e395ca07e725ab0076a5f740" |
| 9 | 9 | ||
| 10 | SRC_URI = "https://gstreamer.freedesktop.org/src/${PNREAL}/${PNREAL}-${@get_gst_ver("${PV}")}.tar.xz" | 10 | SRC_URI = "https://gstreamer.freedesktop.org/src/${PNREAL}/${PNREAL}-${PV}.tar.xz" |
| 11 | SRC_URI[sha256sum] = "e5046a05d77abb15671ad01cd1908d17d62e5a06f5d7841be4342ade2a3fb8db" | 11 | SRC_URI[sha256sum] = "a4b5bfe039b7267fe8cdd48d106ab20cf88cda600f800d84f3d07724079edf1f" |
| 12 | 12 | ||
| 13 | DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base python3-pygobject" | 13 | DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base python3-pygobject" |
| 14 | DEPENDS:append = " gstreamer1.0-plugins-bad" | 14 | DEPENDS:append = " gstreamer1.0-plugins-bad" |
| @@ -17,7 +17,7 @@ RDEPENDS:${PN} += "gstreamer1.0 gstreamer1.0-plugins-base python3-pygobject" | |||
| 17 | 17 | ||
| 18 | PNREAL = "gst-python" | 18 | PNREAL = "gst-python" |
| 19 | 19 | ||
| 20 | S = "${UNPACKDIR}/${PNREAL}-${@get_gst_ver('${PV}')}" | 20 | S = "${UNPACKDIR}/${PNREAL}-${PV}" |
| 21 | 21 | ||
| 22 | EXTRA_OEMESON += "\ | 22 | EXTRA_OEMESON += "\ |
| 23 | -Dtests=disabled \ | 23 | -Dtests=disabled \ |
| @@ -25,11 +25,9 @@ EXTRA_OEMESON += "\ | |||
| 25 | -Dlibpython-dir=${libdir} \ | 25 | -Dlibpython-dir=${libdir} \ |
| 26 | " | 26 | " |
| 27 | 27 | ||
| 28 | inherit meson pkgconfig setuptools3-base upstream-version-is-even features_check | 28 | CFLAGS += "-Wno-error=implicit-function-declaration" |
| 29 | 29 | ||
| 30 | # Drop .imx from PV | 30 | inherit meson pkgconfig setuptools3-base upstream-version-is-even features_check |
| 31 | def get_gst_ver(v): | ||
| 32 | return oe.utils.trim_version(v, 3) | ||
| 33 | 31 | ||
| 34 | FILES:${PN} += "${libdir}/gstreamer-1.0" | 32 | FILES:${PN} += "${libdir}/gstreamer-1.0" |
| 35 | 33 | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server/0001-YOCIMX-9113-rtsp-examples-install-test-launch-and-te.patch b/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server/0001-YOCIMX-9113-rtsp-examples-install-test-launch-and-te.patch new file mode 100644 index 000000000..9a1d206b6 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server/0001-YOCIMX-9113-rtsp-examples-install-test-launch-and-te.patch | |||
| @@ -0,0 +1,63 @@ | |||
| 1 | From 0c50b2e474a0887aaefb1ae47af2c9b755cd1a12 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Haihua Hu <jared.hu@nxp.com> | ||
| 3 | Date: Tue, 8 Jul 2025 17:22:38 +0900 | ||
| 4 | Subject: [PATCH] YOCIMX-9113 rtsp examples: install test-launch and test-uri | ||
| 5 | into rootfs | ||
| 6 | |||
| 7 | gstreamer community has no plan to install these binary as test tool | ||
| 8 | https://discourse.gstreamer.org/t/gst-rtsp-server-examples-are-not-installed-by-default/4806 | ||
| 9 | |||
| 10 | Upstream-Status: Inappropriate [i.MX specific] | ||
| 11 | |||
| 12 | Signed-off-by: Haihua Hu <jared.hu@nxp.com> | ||
| 13 | --- | ||
| 14 | examples/meson.build | 15 +++++++++++++-- | ||
| 15 | 1 file changed, 13 insertions(+), 2 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/examples/meson.build b/examples/meson.build | ||
| 18 | index 100c3f99f3..5939fb5ff6 100644 | ||
| 19 | --- a/examples/meson.build | ||
| 20 | +++ b/examples/meson.build | ||
| 21 | @@ -7,7 +7,6 @@ examples = [ | ||
| 22 | 'test-appsrc2', | ||
| 23 | 'test-auth', | ||
| 24 | 'test-auth-digest', | ||
| 25 | - 'test-launch', | ||
| 26 | 'test-mp4', | ||
| 27 | 'test-multicast2', | ||
| 28 | 'test-multicast', | ||
| 29 | @@ -22,11 +21,15 @@ examples = [ | ||
| 30 | 'test-record', | ||
| 31 | 'test-replay-server', | ||
| 32 | 'test-sdp', | ||
| 33 | - 'test-uri', | ||
| 34 | 'test-video', | ||
| 35 | 'test-video-rtx', | ||
| 36 | ] | ||
| 37 | |||
| 38 | +install_examples = [ | ||
| 39 | + 'test-launch', | ||
| 40 | + 'test-uri', | ||
| 41 | +] | ||
| 42 | + | ||
| 43 | foreach example : examples | ||
| 44 | executable(example, '@0@.c'.format(example), | ||
| 45 | c_args : rtspserver_args, | ||
| 46 | @@ -35,6 +38,14 @@ foreach example : examples | ||
| 47 | install: false) | ||
| 48 | endforeach | ||
| 49 | |||
| 50 | +foreach example : install_examples | ||
| 51 | + executable(example, '@0@.c'.format(example), | ||
| 52 | + c_args : rtspserver_args, | ||
| 53 | + include_directories : rtspserver_incs, | ||
| 54 | + dependencies : [gst_dep, gstapp_dep, gstnet_dep, gst_rtsp_server_dep], | ||
| 55 | + install: true) | ||
| 56 | +endforeach | ||
| 57 | + | ||
| 58 | cgroup_dep = dependency('libcgroup', version : '>= 0.26', required : false) | ||
| 59 | if cgroup_dep.found() | ||
| 60 | executable('test-cgroups', 'test-cgroups.c', | ||
| 61 | -- | ||
| 62 | 2.34.1 | ||
| 63 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.26.0.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.26.6.bb index b5dd9a322..9c32413ae 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.26.0.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.26.6.bb | |||
| @@ -8,31 +8,35 @@ DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base" | |||
| 8 | 8 | ||
| 9 | PNREAL = "gst-rtsp-server" | 9 | PNREAL = "gst-rtsp-server" |
| 10 | 10 | ||
| 11 | SRC_URI = "https://gstreamer.freedesktop.org/src/${PNREAL}/${PNREAL}-${@get_gst_ver("${PV}")}.tar.xz" | 11 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
| 12 | 12 | ||
| 13 | SRC_URI[sha256sum] = "e983c039496e3f75e39696554ce74db4120e2465de17aa1cc37160568e9b40bc" | 13 | SRC_URI = "https://gstreamer.freedesktop.org/src/${PNREAL}/${PNREAL}-${PV}.tar.xz \ |
| 14 | file://0001-YOCIMX-9113-rtsp-examples-install-test-launch-and-te.patch \ | ||
| 15 | " | ||
| 14 | 16 | ||
| 15 | S = "${UNPACKDIR}/${PNREAL}-${@get_gst_ver("${PV}")}" | 17 | SRC_URI[sha256sum] = "ce4e0b7dde7f17dc4f39ffb2dd3db64b0222d11d58be1c9820c20d30370d6f90" |
| 18 | |||
| 19 | S = "${UNPACKDIR}/${PNREAL}-${PV}" | ||
| 16 | 20 | ||
| 17 | inherit meson pkgconfig upstream-version-is-even gobject-introspection | 21 | inherit meson pkgconfig upstream-version-is-even gobject-introspection |
| 18 | 22 | ||
| 19 | EXTRA_OEMESON += " \ | 23 | EXTRA_OEMESON += " \ |
| 20 | -Ddoc=disabled \ | 24 | -Ddoc=disabled \ |
| 21 | -Dexamples=disabled \ | 25 | -Dexamples=enabled \ |
| 22 | -Dtests=disabled \ | 26 | -Dtests=disabled \ |
| 23 | " | 27 | " |
| 24 | 28 | ||
| 25 | GIR_MESON_ENABLE_FLAG = "enabled" | 29 | GIR_MESON_ENABLE_FLAG = "enabled" |
| 26 | GIR_MESON_DISABLE_FLAG = "disabled" | 30 | GIR_MESON_DISABLE_FLAG = "disabled" |
| 27 | 31 | ||
| 28 | # Drop .imx from PV | ||
| 29 | def get_gst_ver(v): | ||
| 30 | return oe.utils.trim_version(v, 3) | ||
| 31 | |||
| 32 | # Starting with 1.8.0 gst-rtsp-server includes dependency-less plugins as well | 32 | # Starting with 1.8.0 gst-rtsp-server includes dependency-less plugins as well |
| 33 | require gstreamer1.0-plugins-packaging.inc | 33 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-packaging.inc |
| 34 | 34 | ||
| 35 | CVE_PRODUCT += "gst-rtsp-server" | 35 | CVE_PRODUCT += "gst-rtsp-server" |
| 36 | 36 | ||
| 37 | COMPATIBLE_MACHINE = "(imx-nxp-bsp)" | 37 | ########### i.MX overrides ################ |
| 38 | |||
| 39 | EXTRA_OEMESON:append:mx93-nxp-bsp = " -Dintrospection=disabled " | ||
| 40 | EXTRA_OEMESON:append:mx943-nxp-bsp = " -Dintrospection=disabled " | ||
| 38 | 41 | ||
| 42 | ########### End of i.MX overrides ######### | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_%.bbappend b/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_%.bbappend deleted file mode 100644 index 3b23818dd..000000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_%.bbappend +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | PACKAGECONFIG_GL:imxgpu = "egl" | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.26.0.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.26.6.bb index 1d83ca031..559bac064 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.26.0.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.26.6.bb | |||
| @@ -9,19 +9,15 @@ REALPN = "gstreamer-vaapi" | |||
| 9 | LICENSE = "LGPL-2.1-or-later" | 9 | LICENSE = "LGPL-2.1-or-later" |
| 10 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c" | 10 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c" |
| 11 | 11 | ||
| 12 | SRC_URI = "https://gstreamer.freedesktop.org/src/${REALPN}/${REALPN}-${@get_gst_ver("${PV}")}.tar.xz" | 12 | SRC_URI = "https://gstreamer.freedesktop.org/src/${REALPN}/${REALPN}-${PV}.tar.xz" |
| 13 | 13 | ||
| 14 | SRC_URI[sha256sum] = "573931d455f5a96f63db7c8d35d51322b8d287816e8c6a77d84cfbb9fa1351f1" | 14 | SRC_URI[sha256sum] = "d87c57244cecbd17bb030b698dcb67a66225de639f7c5b837391c4a8e5477667" |
| 15 | 15 | ||
| 16 | S = "${UNPACKDIR}/${REALPN}-${@get_gst_ver('${PV}')}" | 16 | S = "${UNPACKDIR}/${REALPN}-${PV}" |
| 17 | DEPENDS = "libva gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad" | 17 | DEPENDS = "libva gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad" |
| 18 | 18 | ||
| 19 | inherit meson pkgconfig features_check upstream-version-is-even | 19 | inherit meson pkgconfig features_check upstream-version-is-even |
| 20 | 20 | ||
| 21 | # Drop .imx from PV | ||
| 22 | def get_gst_ver(v): | ||
| 23 | return oe.utils.trim_version(v, 3) | ||
| 24 | |||
| 25 | REQUIRED_DISTRO_FEATURES ?= "opengl" | 21 | REQUIRED_DISTRO_FEATURES ?= "opengl" |
| 26 | 22 | ||
| 27 | EXTRA_OEMESON += " \ | 23 | EXTRA_OEMESON += " \ |
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0_1.26.0.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0_1.26.6.imx.bb index 5b315ed7f..e602ff35c 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0_1.26.0.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0_1.26.6.imx.bb | |||
| @@ -20,8 +20,6 @@ inherit meson pkgconfig gettext upstream-version-is-even gobject-introspection p | |||
| 20 | LIC_FILES_CHKSUM = "file://COPYING;md5=69333daa044cb77e486cc36129f7a770 \ | 20 | LIC_FILES_CHKSUM = "file://COPYING;md5=69333daa044cb77e486cc36129f7a770 \ |
| 21 | file://gst/gst.h;beginline=1;endline=21;md5=e059138481205ee2c6fc1c079c016d0d" | 21 | file://gst/gst.h;beginline=1;endline=21;md5=e059138481205ee2c6fc1c079c016d0d" |
| 22 | 22 | ||
| 23 | S = "${WORKDIR}/gstreamer-${PV}" | ||
| 24 | |||
| 25 | SRC_URI = "https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-${PV}.tar.xz \ | 23 | SRC_URI = "https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-${PV}.tar.xz \ |
| 26 | file://run-ptest \ | 24 | file://run-ptest \ |
| 27 | file://0001-tests-respect-the-idententaion-used-in-meson.patch \ | 25 | file://0001-tests-respect-the-idententaion-used-in-meson.patch \ |
| @@ -93,17 +91,15 @@ LIC_FILES_CHKSUM = " \ | |||
| 93 | 91 | ||
| 94 | # Use i.MX fork of GST for customizations | 92 | # Use i.MX fork of GST for customizations |
| 95 | SRC_URI:remove = "https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-${PV}.tar.xz \ | 93 | SRC_URI:remove = "https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-${PV}.tar.xz \ |
| 96 | file://0001-tests-respect-the-idententaion-used-in-meson.patch \ | 94 | file://0001-tests-respect-the-idententaion-used-in-meson.patch \ |
| 97 | file://0002-tests-add-support-for-install-the-tests.patch \ | 95 | file://0002-tests-add-support-for-install-the-tests.patch \ |
| 98 | file://0003-tests-use-a-dictionaries-for-environment.patch;striplevel=3 \ | 96 | file://0003-tests-use-a-dictionaries-for-environment.patch;striplevel=3 \ |
| 99 | file://0004-tests-add-helper-script-to-run-the-installed_tests.patch;striplevel=3 \ | 97 | file://0004-tests-add-helper-script-to-run-the-installed_tests.patch;striplevel=3 \ |
| 100 | " | 98 | " |
| 101 | SRC_URI:prepend = "${GST1.0_SRC};branch=${SRCBRANCH} " | 99 | SRC_URI:prepend = "${GST1.0_SRC};branch=${SRCBRANCH} " |
| 102 | GST1.0_SRC ?= "gitsm://github.com/nxp-imx/gstreamer.git;protocol=https" | 100 | GST1.0_SRC ?= "gitsm://github.com/nxp-imx/gstreamer.git;protocol=https" |
| 103 | SRCBRANCH = "MM_04.10.0_2505_L6.12.20" | 101 | SRCBRANCH = "MM_04.10.03_2512_L6.18.2" |
| 104 | SRCREV = "dba94b66ed28cc6537608a68c31c8be52f6f53a5" | 102 | SRCREV = "524a14c8906597f4fd302190adbd3a8af3572866" |
| 105 | |||
| 106 | S = "${UNPACKDIR}/${BP}" | ||
| 107 | 103 | ||
| 108 | PACKAGECONFIG[tests] = "-Dtests=enabled,-Dtests=disabled" | 104 | PACKAGECONFIG[tests] = "-Dtests=enabled,-Dtests=disabled" |
| 109 | 105 | ||
diff --git a/recipes-multimedia/gstreamer/imx-gst1.0-plugin/0001-gplay2-fix-termio.h-no-longer-existing.patch b/recipes-multimedia/gstreamer/imx-gst1.0-plugin/0001-gplay2-fix-termio.h-no-longer-existing.patch deleted file mode 100644 index cb314b38d..000000000 --- a/recipes-multimedia/gstreamer/imx-gst1.0-plugin/0001-gplay2-fix-termio.h-no-longer-existing.patch +++ /dev/null | |||
| @@ -1,35 +0,0 @@ | |||
| 1 | From b88aec4d7a8c8993c8c75f002a1f2af1635337d1 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Max Krummenacher <max.krummenacher@toradex.com> | ||
| 3 | Date: Sat, 9 Aug 2025 08:20:50 +0000 | ||
| 4 | Subject: [PATCH] gplay2: fix termio.h no longer existing | ||
| 5 | |||
| 6 | glibc 2.42 removed the long deprecated termio.h header which | ||
| 7 | in 2.41 only included termios.h and sys/ioctl.h. [1] | ||
| 8 | |||
| 9 | Replacing it with sys/ioctl.h seems to provide all the needed | ||
| 10 | declaration for successfully compiling. | ||
| 11 | |||
| 12 | [1] https://sourceware.org/git/?p=glibc.git;a=blob;f=NEWS#l91 | ||
| 13 | |||
| 14 | Upstream-Status: Pending | ||
| 15 | Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> | ||
| 16 | --- | ||
| 17 | tools/gplay2/gplay2.c | 2 +- | ||
| 18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 19 | |||
| 20 | diff --git a/tools/gplay2/gplay2.c b/tools/gplay2/gplay2.c | ||
| 21 | index 9e406b9ea8c7..98b3ee5cf666 100755 | ||
| 22 | --- a/tools/gplay2/gplay2.c | ||
| 23 | +++ b/tools/gplay2/gplay2.c | ||
| 24 | @@ -26,7 +26,7 @@ | ||
| 25 | */ | ||
| 26 | |||
| 27 | |||
| 28 | -#include <termio.h> | ||
| 29 | +#include <sys/ioctl.h> | ||
| 30 | #include <unistd.h> | ||
| 31 | #include <pthread.h> | ||
| 32 | #include <stdio.h> | ||
| 33 | -- | ||
| 34 | 2.42.0 | ||
| 35 | |||
diff --git a/recipes-multimedia/gstreamer/imx-gst1.0-plugin_git.bb b/recipes-multimedia/gstreamer/imx-gst1.0-plugin_git.bb index 2ba8fdd1d..48d84cead 100644 --- a/recipes-multimedia/gstreamer/imx-gst1.0-plugin_git.bb +++ b/recipes-multimedia/gstreamer/imx-gst1.0-plugin_git.bb | |||
| @@ -1,8 +1,7 @@ | |||
| 1 | # Copyright (C) 2014,2016 Freescale Semiconductor | 1 | # Copyright (C) 2014,2016 Freescale Semiconductor |
| 2 | # Copyright 2017-2021 NXP | 2 | # Copyright 2017-2025 NXP |
| 3 | # Copyright (C) 2012-2015 O.S. Systems Software LTDA. | 3 | # Copyright (C) 2012-2015 O.S. Systems Software LTDA. |
| 4 | # Released under the MIT license (see COPYING.MIT for the terms) | 4 | # Released under the MIT license (see COPYING.MIT for the terms) |
| 5 | |||
| 6 | DESCRIPTION = "Gstreamer freescale plugins" | 5 | DESCRIPTION = "Gstreamer freescale plugins" |
| 7 | SECTION = "multimedia" | 6 | SECTION = "multimedia" |
| 8 | LICENSE = "GPL-2.0-only & LGPL-2.0-only & LGPL-2.1-only" | 7 | LICENSE = "GPL-2.0-only & LGPL-2.0-only & LGPL-2.1-only" |
| @@ -15,11 +14,13 @@ DEPENDS = " \ | |||
| 15 | imx-codec \ | 14 | imx-codec \ |
| 16 | imx-parser \ | 15 | imx-parser \ |
| 17 | ${DEPENDS_IMXGPU} \ | 16 | ${DEPENDS_IMXGPU} \ |
| 17 | libinput \ | ||
| 18 | " | 18 | " |
| 19 | DEPENDS:append:mx6-nxp-bsp = " imx-lib" | 19 | DEPENDS:append:mx6-nxp-bsp = " imx-lib" |
| 20 | DEPENDS:append:mx7-nxp-bsp = " imx-lib" | 20 | DEPENDS:append:mx7-nxp-bsp = " imx-lib" |
| 21 | DEPENDS:append:mx8ulp-nxp-bsp = " imx-lib" | 21 | DEPENDS:append:mx8ulp-nxp-bsp = " imx-lib" |
| 22 | DEPENDS:append:mx93-nxp-bsp = " imx-lib" | 22 | DEPENDS:append:mx93-nxp-bsp = " imx-lib" |
| 23 | DEPENDS:append:mx943-nxp-bsp = " imx-lib" | ||
| 23 | DEPENDS:append:imxvpu = " imx-vpuwrap" | 24 | DEPENDS:append:imxvpu = " imx-vpuwrap" |
| 24 | DEPENDS:append:imxfbdev:imxgpu = " libdrm" | 25 | DEPENDS:append:imxfbdev:imxgpu = " libdrm" |
| 25 | DEPENDS_IMXGPU = "" | 26 | DEPENDS_IMXGPU = "" |
| @@ -34,14 +35,13 @@ RREPLACES:${PN} = "gst1.0-fsl-plugin" | |||
| 34 | RPROVIDES:${PN} = "gst1.0-fsl-plugin" | 35 | RPROVIDES:${PN} = "gst1.0-fsl-plugin" |
| 35 | RCONFLICTS:${PN} = "gst1.0-fsl-plugin" | 36 | RCONFLICTS:${PN} = "gst1.0-fsl-plugin" |
| 36 | 37 | ||
| 37 | PV = "4.10.0+git${SRCPV}" | 38 | PV = "4.10.3+git${SRCPV}" |
| 39 | |||
| 40 | SRC_URI = "${IMXGST_SRC};branch=${SRCBRANCH}" | ||
| 41 | IMXGST_SRC ?= "git://github.com/nxp-imx/imx-gst1.0-plugin.git;protocol=https" | ||
| 42 | SRCBRANCH = "MM_04.10.03_2512_L6.18.2" | ||
| 43 | SRCREV = "0565fc515612908a353e8378e24f97de17cc56a6" | ||
| 38 | 44 | ||
| 39 | SRC_URI = " \ | ||
| 40 | git://github.com/nxp-imx/imx-gst1.0-plugin.git;protocol=https;branch=${SRCBRANCH} \ | ||
| 41 | file://0001-gplay2-fix-termio.h-no-longer-existing.patch \ | ||
| 42 | " | ||
| 43 | SRCBRANCH = "MM_04.10.0_2505_L6.12.20" | ||
| 44 | SRCREV = "6861aec99901375f5ebcd5170ce1f5232cd38fd6" | ||
| 45 | 45 | ||
| 46 | inherit meson pkgconfig use-imx-headers | 46 | inherit meson pkgconfig use-imx-headers |
| 47 | 47 | ||
| @@ -60,7 +60,7 @@ EXTRA_OEMESON = "-Dplatform=${PLATFORM} \ | |||
| 60 | -Dc_args="${CFLAGS} -I${STAGING_INCDIR_IMX}" \ | 60 | -Dc_args="${CFLAGS} -I${STAGING_INCDIR_IMX}" \ |
| 61 | " | 61 | " |
| 62 | 62 | ||
| 63 | PACKAGES =+ "${PN}-gplay ${PN}-libgplaycore ${PN}-libgstfsl ${PN}-grecorder ${PN}-librecorder-engine ${PN}-libplayengine" | 63 | PACKAGES =+ "${PN}-tools ${PN}-libgstfsl" |
| 64 | 64 | ||
| 65 | # Add codec list that the beep plugin run-time depended | 65 | # Add codec list that the beep plugin run-time depended |
| 66 | BEEP_RDEPENDS = "imx-codec-aac imx-codec-mp3 imx-codec-oggvorbis" | 66 | BEEP_RDEPENDS = "imx-codec-aac imx-codec-mp3 imx-codec-oggvorbis" |
| @@ -86,12 +86,9 @@ FILES:${PN} = "${libdir}/gstreamer-1.0/*.so ${datadir}" | |||
| 86 | 86 | ||
| 87 | FILES:${PN}-dbg += "${libdir}/gstreamer-1.0/.debug" | 87 | FILES:${PN}-dbg += "${libdir}/gstreamer-1.0/.debug" |
| 88 | FILES:${PN}-dev += "${libdir}/gstreamer-1.0/*.la ${libdir}/pkgconfig/*.pc" | 88 | FILES:${PN}-dev += "${libdir}/gstreamer-1.0/*.la ${libdir}/pkgconfig/*.pc" |
| 89 | FILES:${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a" | 89 | FILES:${PN}-tools += "${bindir}/* ${libdir}/librecorder_engine-1.0${SOLIBS}" |
| 90 | FILES:${PN}-gplay = "${bindir}/gplay-1.0" | ||
| 91 | FILES:${PN}-libgplaycore = "${libdir}/libgplaycore-1.0${SOLIBS}" | ||
| 92 | FILES:${PN}-libgstfsl = "${libdir}/libgstfsl-1.0${SOLIBS}" | 90 | FILES:${PN}-libgstfsl = "${libdir}/libgstfsl-1.0${SOLIBS}" |
| 93 | FILES:${PN}-grecorder = "${bindir}/grecorder-1.0" | 91 | |
| 94 | FILES:${PN}-librecorder-engine = "${libdir}/librecorder_engine-1.0${SOLIBS}" | 92 | INSANE_SKIP:${PN} = "build-deps" |
| 95 | FILES:${PN}-libplayengine = "${libdir}/libplayengine-1.0${SOLIBS}" | ||
| 96 | 93 | ||
| 97 | COMPATIBLE_MACHINE = "(imx-nxp-bsp)" | 94 | COMPATIBLE_MACHINE = "(imx-nxp-bsp)" |
