summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2024-04-26 17:49:10 -0300
committerGitHub <noreply@github.com>2024-04-26 17:49:10 -0300
commit9158a49793b17e2a922ca975c7d9ec0f1e3a03c2 (patch)
tree57b613665fad848d632b1a97cf5f269622e8db3d
parentdf4a0ae5111e6300aaaa88c3a0db61910fac1d69 (diff)
parentd29e7efe84ed773152e3935e420c3b77ceb7c68a (diff)
downloadmeta-freescale-9158a49793b17e2a922ca975c7d9ec0f1e3a03c2.tar.gz
Merge pull request #1806 from nxp-upstream/fixup
Fixup
-rw-r--r--conf/machine/include/imx-base.inc16
-rw-r--r--recipes-bsp/imx-test/imx-test_git.bb7
-rw-r--r--recipes-graphics/waffle/waffle/0001-meson-Add-missing-wayland-dependency-on-EGL.patch8
-rw-r--r--recipes-graphics/waffle/waffle/0002-meson-Separate-surfaceless-option-from-x11.patch22
-rw-r--r--recipes-multimedia/gstreamer/gst-devtools_1.22.0.imx.bb56
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-libav_1.22.0.imx.bb36
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-omx_1.22.0.imx.bb52
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.22.0.imx.bb52
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-python_1.22.0.imx.bb32
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.22.0.imx.bb37
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.22.0.imx.bb64
11 files changed, 19 insertions, 363 deletions
diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc
index 3e551ae5..8c468fea 100644
--- a/conf/machine/include/imx-base.inc
+++ b/conf/machine/include/imx-base.inc
@@ -519,22 +519,6 @@ PREFERRED_VERSION_gstreamer1.0-plugins-bad:mx9-nxp-bsp ??= "1.22.5.imx"
519PREFERRED_VERSION_gstreamer1.0-plugins-base:mx9-nxp-bsp ??= "1.22.5.imx" 519PREFERRED_VERSION_gstreamer1.0-plugins-base:mx9-nxp-bsp ??= "1.22.5.imx"
520PREFERRED_VERSION_gstreamer1.0-plugins-good:mx9-nxp-bsp ??= "1.22.5.imx" 520PREFERRED_VERSION_gstreamer1.0-plugins-good:mx9-nxp-bsp ??= "1.22.5.imx"
521 521
522# GStreamer copied recipes
523PREFERRED_VERSION_gst-devtools:mx8-nxp-bsp ??= "1.22.0.imx"
524PREFERRED_VERSION_gstreamer1.0-libav:mx8-nxp-bsp ??= "1.22.0.imx"
525PREFERRED_VERSION_gstreamer1.0-omx:mx8-nxp-bsp ??= "1.22.0.imx"
526PREFERRED_VERSION_gstreamer1.0-plugins-ugly:mx8-nxp-bsp ??= "1.22.0.imx"
527PREFERRED_VERSION_gstreamer1.0-python:mx8-nxp-bsp ??= "1.22.0.imx"
528PREFERRED_VERSION_gstreamer1.0-rtsp-server:mx8-nxp-bsp ??= "1.22.0.imx"
529PREFERRED_VERSION_gstreamer1.0-vaapi:mx8-nxp-bsp ??= "1.22.0.imx"
530PREFERRED_VERSION_gst-devtools:mx9-nxp-bsp ??= "1.22.0.imx"
531PREFERRED_VERSION_gstreamer1.0-libav:mx9-nxp-bsp ??= "1.22.0.imx"
532PREFERRED_VERSION_gstreamer1.0-omx:mx9-nxp-bsp ??= "1.22.0.imx"
533PREFERRED_VERSION_gstreamer1.0-plugins-ugly:mx9-nxp-bsp ??= "1.22.0.imx"
534PREFERRED_VERSION_gstreamer1.0-python:mx9-nxp-bsp ??= "1.22.0.imx"
535PREFERRED_VERSION_gstreamer1.0-rtsp-server:mx9-nxp-bsp ??= "1.22.0.imx"
536PREFERRED_VERSION_gstreamer1.0-vaapi:mx9-nxp-bsp ??= "1.22.0.imx"
537
538# GStreamer downgrade ffmpeg 522# GStreamer downgrade ffmpeg
539PREFERRED_VERSION_ffmpeg:mx8-nxp-bsp ??= "4.4.1" 523PREFERRED_VERSION_ffmpeg:mx8-nxp-bsp ??= "4.4.1"
540PREFERRED_VERSION_ffmpeg:mx9-nxp-bsp ??= "4.4.1" 524PREFERRED_VERSION_ffmpeg:mx9-nxp-bsp ??= "4.4.1"
diff --git a/recipes-bsp/imx-test/imx-test_git.bb b/recipes-bsp/imx-test/imx-test_git.bb
index 5d30179d..930cdf94 100644
--- a/recipes-bsp/imx-test/imx-test_git.bb
+++ b/recipes-bsp/imx-test/imx-test_git.bb
@@ -13,14 +13,15 @@ DEPENDS:append:imxvpu = " virtual/imxvpu"
13DEPENDS:append:mx6-nxp-bsp = " imx-lib" 13DEPENDS:append:mx6-nxp-bsp = " imx-lib"
14DEPENDS:append:mx7-nxp-bsp = " imx-lib" 14DEPENDS:append:mx7-nxp-bsp = " imx-lib"
15DEPENDS:append:mx8ulp-nxp-bsp = " imx-lib" 15DEPENDS:append:mx8ulp-nxp-bsp = " imx-lib"
16DEPENDS:append:mx93-nxp-bsp = " imx-lib"
16 17
17PE = "1" 18PE = "1"
18PV = "7.0+${SRCPV}" 19PV = "7.0+${SRCPV}"
19 20
20SRC_URI = "git://github.com/nxp-imx/imx-test.git;protocol=https;branch=${SRCBRANCH} \ 21SRC_URI = "git://github.com/nxp-imx/imx-test.git;protocol=https;branch=${SRCBRANCH} \
21 file://memtool_profile" 22 file://memtool_profile"
22SRCBRANCH = "lf-6.1.55_2.2.0" 23SRCBRANCH = "lf-6.6.3_1.0.0"
23SRCREV = "e8b3c9026553233491abb4df4185dd7291a8ffb2" 24SRCREV = "8a1fa37664a1e470cf86f1185c08e265e4602a9b"
24 25
25S = "${WORKDIR}/git" 26S = "${WORKDIR}/git"
26 27
@@ -39,6 +40,8 @@ PLATFORM:mx7d-nxp-bsp = "IMX7D"
39PLATFORM:mx7ulp-nxp-bsp = "IMX7D" 40PLATFORM:mx7ulp-nxp-bsp = "IMX7D"
40PLATFORM:mx8-nxp-bsp = "IMX8" 41PLATFORM:mx8-nxp-bsp = "IMX8"
41PLATFORM:mx8ulp-nxp-bsp = "IMX8ULP" 42PLATFORM:mx8ulp-nxp-bsp = "IMX8ULP"
43PLATFORM:mx93-nxp-bsp = "IMX8ULP"
44PLATFORM:mx95-nxp-bsp = "IMX8"
42 45
43PARALLEL_MAKE = "-j 1" 46PARALLEL_MAKE = "-j 1"
44EXTRA_OEMAKE += "${PACKAGECONFIG_CONFARGS}" 47EXTRA_OEMAKE += "${PACKAGECONFIG_CONFARGS}"
diff --git a/recipes-graphics/waffle/waffle/0001-meson-Add-missing-wayland-dependency-on-EGL.patch b/recipes-graphics/waffle/waffle/0001-meson-Add-missing-wayland-dependency-on-EGL.patch
index 6f4be031..01849d92 100644
--- a/recipes-graphics/waffle/waffle/0001-meson-Add-missing-wayland-dependency-on-EGL.patch
+++ b/recipes-graphics/waffle/waffle/0001-meson-Add-missing-wayland-dependency-on-EGL.patch
@@ -18,7 +18,7 @@ Index: git/meson.build
18=================================================================== 18===================================================================
19--- git.orig/meson.build 19--- git.orig/meson.build
20+++ git/meson.build 20+++ git/meson.build
21@@ -65,6 +65,7 @@ dep_gl = _dep_null 21@@ -64,6 +64,7 @@ dep_drm = _dep_null
22 dep_egl = _dep_null 22 dep_egl = _dep_null
23 dep_wayland_client = _dep_null 23 dep_wayland_client = _dep_null
24 dep_wayland_egl = _dep_null 24 dep_wayland_egl = _dep_null
@@ -26,7 +26,7 @@ Index: git/meson.build
26 dep_wayland_scanner = _dep_null 26 dep_wayland_scanner = _dep_null
27 dep_wayland_proto = _dep_null 27 dep_wayland_proto = _dep_null
28 dep_x11_xcb = _dep_null 28 dep_x11_xcb = _dep_null
29@@ -106,7 +107,8 @@ else 29@@ -104,7 +105,8 @@ else
30 dep_wayland_client = dependency( 30 dep_wayland_client = dependency(
31 'wayland-client', version : '>= 1.10', required : get_option('wayland'), 31 'wayland-client', version : '>= 1.10', required : get_option('wayland'),
32 ) 32 )
@@ -36,7 +36,7 @@ Index: git/meson.build
36 'wayland-egl', version : '>= 9.1', required : get_option('wayland'), 36 'wayland-egl', version : '>= 9.1', required : get_option('wayland'),
37 ) 37 )
38 dep_wayland_scanner = dependency( 38 dep_wayland_scanner = dependency(
39@@ -124,7 +126,7 @@ else 39@@ -122,7 +124,7 @@ else
40 wayland_xdg_shell_xml = join_paths(dep_wayland_proto.get_variable(pkgconfig: 'pkgdatadir'), 40 wayland_xdg_shell_xml = join_paths(dep_wayland_proto.get_variable(pkgconfig: 'pkgdatadir'),
41 'stable/xdg-shell/xdg-shell.xml') 41 'stable/xdg-shell/xdg-shell.xml')
42 endif 42 endif
@@ -44,4 +44,4 @@ Index: git/meson.build
44+ build_wayland = dep_egl.found() and dep_wayland_client.found() and dep_wayland_egl.found() and dep_wayland_scanner.found() and dep_wayland_proto.found() and dep_wayland_wayland_egl.found() 44+ build_wayland = dep_egl.found() and dep_wayland_client.found() and dep_wayland_egl.found() and dep_wayland_scanner.found() and dep_wayland_proto.found() and dep_wayland_wayland_egl.found()
45 45
46 # We're interested only in the headers provided 46 # We're interested only in the headers provided
47 # FINISHME: make x11_xcb and udev compile-only dependency 47 # FINISHME: make x11_xcb compile-only dependency
diff --git a/recipes-graphics/waffle/waffle/0002-meson-Separate-surfaceless-option-from-x11.patch b/recipes-graphics/waffle/waffle/0002-meson-Separate-surfaceless-option-from-x11.patch
index 2a680cc6..01b2b040 100644
--- a/recipes-graphics/waffle/waffle/0002-meson-Separate-surfaceless-option-from-x11.patch
+++ b/recipes-graphics/waffle/waffle/0002-meson-Separate-surfaceless-option-from-x11.patch
@@ -14,9 +14,11 @@ Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
14 meson.build | 5 ++++- 14 meson.build | 5 ++++-
15 1 file changed, 4 insertions(+), 1 deletion(-) 15 1 file changed, 4 insertions(+), 1 deletion(-)
16 16
17--- a/meson.build 17Index: git/meson.build
18+++ b/meson.build 18===================================================================
19@@ -72,6 +72,7 @@ dep_udev = _dep_null 19--- git.orig/meson.build
20+++ git/meson.build
21@@ -72,6 +72,7 @@ dep_gbm = _dep_null
20 dep_cocoa = _dep_null 22 dep_cocoa = _dep_null
21 dep_core_foundation = _dep_null 23 dep_core_foundation = _dep_null
22 dep_gl_headers = _dep_null 24 dep_gl_headers = _dep_null
@@ -24,17 +26,13 @@ Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
24 26
25 # Get dependencies 27 # Get dependencies
26 if build_wgl 28 if build_wgl
27@@ -96,10 +97,11 @@ else 29@@ -99,7 +100,8 @@ else
28 dep_egl = dependency('egl', required : get_option('gbm')) 30 build_gbm = dep_drm.found() and dep_egl.found() and dep_gbm.found()
29 dep_gbm = dependency('gbm', required : get_option('gbm'))
30 dep_udev = dependency('libudev', required : get_option('gbm'))
31+ dep_surfaceless_egl = dependency('egl', required : get_option('surfaceless_egl'))
32+ dep_surfaceless_gbm = dependency('gbm', required : get_option('surfaceless_egl'))
33 build_gbm = dep_egl.found() and dep_gbm.found() and dep_udev.found()
34 31
35- dep_egl = dependency('egl', required : get_option('surfaceless_egl')) 32 dep_egl = dependency('egl', required : get_option('surfaceless_egl'))
36- build_surfaceless = dep_egl.found() 33- build_surfaceless = dep_egl.found()
37+ build_surfaceless = dep_surfaceless_egl.found() and dep_surfaceless_gbm.found() 34+ dep_gbm = dependency('gbm', required : get_option('surfaceless_egl'))
35+ build_surfaceless = dep_egl.found() and dep_gbm.found()
38 36
39 dep_egl = dependency('egl', required : get_option('wayland')) 37 dep_egl = dependency('egl', required : get_option('wayland'))
40 dep_wayland_client = dependency( 38 dep_wayland_client = dependency(
diff --git a/recipes-multimedia/gstreamer/gst-devtools_1.22.0.imx.bb b/recipes-multimedia/gstreamer/gst-devtools_1.22.0.imx.bb
deleted file mode 100644
index 4006f3eb..00000000
--- a/recipes-multimedia/gstreamer/gst-devtools_1.22.0.imx.bb
+++ /dev/null
@@ -1,56 +0,0 @@
1SUMMARY = "Gstreamer validation tool"
2DESCRIPTION = "A Tool to test GStreamer components"
3HOMEPAGE = "https://gstreamer.freedesktop.org/documentation/gst-devtools/index.html"
4SECTION = "multimedia"
5
6LICENSE = "LGPL-2.1-or-later"
7LIC_FILES_CHKSUM = "file://validate/COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"
8
9S = "${WORKDIR}/gst-devtools-${@get_gst_ver('${PV}')}"
10
11SRC_URI = "https://gstreamer.freedesktop.org/src/gst-devtools/gst-devtools-${@get_gst_ver('${PV}')}.tar.xz \
12 file://0001-connect-has-a-different-signature-on-musl.patch \
13 "
14
15SRC_URI[sha256sum] = "4d21fee5c15f2877c0b1f6c2da0cdba67ce7caab2c199ab27e91a1394d5ba195"
16
17DEPENDS = "json-glib glib-2.0 glib-2.0-native gstreamer1.0 gstreamer1.0-plugins-base"
18RRECOMMENDS:${PN} = "git"
19
20FILES:${PN} += "${datadir}/gstreamer-1.0/* ${libdir}/gst-validate-launcher/* ${libdir}/gstreamer-1.0/*"
21
22inherit meson pkgconfig gettext upstream-version-is-even gobject-introspection
23
24# Drop .imx from PV
25def get_gst_ver(v):
26 return oe.utils.trim_version(v, 3)
27
28# TODO: put this in a gettext.bbclass patch
29def 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# Build GstValidateVideo
38PACKAGECONFIG[cairo] = "-Dcairo=enabled,-Dcairo=disabled,cairo"
39
40EXTRA_OEMESON += " \
41 -Ddoc=disabled \
42 -Ddebug_viewer=disabled \
43 -Dtests=disabled \
44 -Dvalidate=enabled \
45 ${@gettext_oemeson(d)} \
46"
47
48do_install:append () {
49 for fn in ${bindir}/gst-validate-launcher \
50 ${libdir}/gst-validate-launcher/python/launcher/config.py; do
51 sed -i -e 's,${B},/usr/src/debug/${PN},g' -e 's,${S},/usr/src/debug/${PN},g' ${D}$fn
52 done
53}
54
55GIR_MESON_ENABLE_FLAG = "enabled"
56GIR_MESON_DISABLE_FLAG = "disabled"
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.22.0.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.22.0.imx.bb
deleted file mode 100644
index 742004d8..00000000
--- a/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.22.0.imx.bb
+++ /dev/null
@@ -1,36 +0,0 @@
1SUMMARY = "Libav-based GStreamer 1.x plugin"
2DESCRIPTION = "Contains a GStreamer plugin for using the encoders, decoders, \
3muxers, and demuxers provided by FFmpeg."
4HOMEPAGE = "http://gstreamer.freedesktop.org/"
5SECTION = "multimedia"
6
7# ffmpeg has comercial license flags so add it as we need ffmpeg as a dependency
8LICENSE_FLAGS = "commercial"
9LICENSE = "LGPL-2.1-or-later"
10LIC_FILES_CHKSUM = "file://COPYING;md5=69333daa044cb77e486cc36129f7a770 \
11 file://ext/libav/gstav.h;beginline=1;endline=18;md5=a752c35267d8276fd9ca3db6994fca9c \
12 "
13
14SRC_URI = "https://gstreamer.freedesktop.org/src/gst-libav/gst-libav-${@get_gst_ver('${PV}')}.tar.xz \
15 file://ffmpeg-6.0.patch \
16 "
17SRC_URI[sha256sum] = "0e48407b4905227a260213dbda84cba3812f0530fc7a75b43829102ef82810f1"
18
19S = "${WORKDIR}/gst-libav-${@get_gst_ver('${PV}')}"
20
21DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base ffmpeg"
22
23inherit meson pkgconfig upstream-version-is-even
24
25EXTRA_OEMESON += " \
26 -Dtests=disabled \
27"
28
29# Drop .imx from PV
30def get_gst_ver(v):
31 return oe.utils.trim_version(v, 3)
32
33FILES:${PN} += "${libdir}/gstreamer-1.0/*.so"
34FILES:${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a"
35
36COMPATIBLE_MACHINE = "(imx-nxp-bsp)"
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-omx_1.22.0.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-omx_1.22.0.imx.bb
deleted file mode 100644
index dc4bccd7..00000000
--- a/recipes-multimedia/gstreamer/gstreamer1.0-omx_1.22.0.imx.bb
+++ /dev/null
@@ -1,52 +0,0 @@
1SUMMARY = "OpenMAX IL plugins for GStreamer"
2DESCRIPTION = "Wraps available OpenMAX IL components and makes them available as standard GStreamer elements."
3HOMEPAGE = "http://gstreamer.freedesktop.org/"
4SECTION = "multimedia"
5
6LICENSE = "LGPL-2.1-or-later"
7LICENSE_FLAGS = "commercial"
8LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
9 file://omx/gstomx.h;beginline=1;endline=21;md5=5c8e1fca32704488e76d2ba9ddfa935f"
10
11SRC_URI = "https://gstreamer.freedesktop.org/src/gst-omx/gst-omx-${@get_gst_ver('${PV}')}.tar.xz"
12
13SRC_URI[sha256sum] = "dbc951a99af532380e599aa8acd9e1385fdb299b46b5868cd2be4230ad888341"
14
15S = "${WORKDIR}/gst-omx-${@get_gst_ver('${PV}')}"
16
17DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad virtual/libomxil"
18
19inherit meson pkgconfig upstream-version-is-even
20
21GSTREAMER_1_0_OMX_TARGET ?= "bellagio"
22GSTREAMER_1_0_OMX_CORE_NAME ?= "${libdir}/libomxil-bellagio.so.0"
23
24EXTRA_OEMESON += "-Dtarget=${GSTREAMER_1_0_OMX_TARGET}"
25
26python __anonymous () {
27 omx_target = d.getVar("GSTREAMER_1_0_OMX_TARGET")
28 if omx_target in ['generic', 'bellagio']:
29 # Bellagio headers are incomplete (they are missing the OMX_VERSION_MAJOR,#
30 # OMX_VERSION_MINOR, OMX_VERSION_REVISION, and OMX_VERSION_STEP macros);
31 # appending a directory path to gst-omx' internal OpenMAX IL headers fixes this
32 d.appendVar("CFLAGS", " -I${S}/omx/openmax")
33 elif omx_target == "rpi":
34 # Dedicated Raspberry Pi OpenMAX IL support makes this package machine specific
35 d.setVar("PACKAGE_ARCH", d.getVar("MACHINE_ARCH"))
36}
37
38set_omx_core_name() {
39 sed -i -e "s;^core-name=.*;core-name=${GSTREAMER_1_0_OMX_CORE_NAME};" "${D}${sysconfdir}/xdg/gstomx.conf"
40}
41
42# Drop .imx from PV
43def get_gst_ver(v):
44 return oe.utils.trim_version(v, 3)
45
46do_install[postfuncs] += " set_omx_core_name "
47
48FILES:${PN} += "${libdir}/gstreamer-1.0/*.so"
49FILES:${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a"
50
51VIRTUAL-RUNTIME_libomxil ?= "libomxil"
52RDEPENDS:${PN} = "${VIRTUAL-RUNTIME_libomxil}"
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.22.0.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.22.0.imx.bb
deleted file mode 100644
index 17522a93..00000000
--- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.22.0.imx.bb
+++ /dev/null
@@ -1,52 +0,0 @@
1require gstreamer1.0-plugins-common.inc
2require gstreamer1.0-plugins-license.inc
3
4SUMMARY = "'Ugly GStreamer plugins"
5HOMEPAGE = "https://gstreamer.freedesktop.org/"
6BUGTRACKER = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-ugly/-/issues"
7
8LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \
9 "
10
11LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later"
12LICENSE_FLAGS = "commercial"
13
14SRC_URI = " \
15 https://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-${@get_gst_ver("${PV}")}.tar.xz \
16 "
17SRC_URI[sha256sum] = "a644dc981afa2d8d3a913f763ab9523c0620ee4e65a7ec73c7721c29da3c5a0c"
18
19S = "${WORKDIR}/gst-plugins-ugly-${@get_gst_ver("${PV}")}"
20
21DEPENDS += "gstreamer1.0-plugins-base"
22
23GST_PLUGIN_SET_HAS_EXAMPLES = "0"
24
25PACKAGECONFIG ??= " \
26 ${GSTREAMER_ORC} \
27 a52dec mpeg2dec \
28"
29
30PACKAGECONFIG[amrnb] = "-Damrnb=enabled,-Damrnb=disabled,opencore-amr"
31PACKAGECONFIG[amrwb] = "-Damrwbdec=enabled,-Damrwbdec=disabled,opencore-amr"
32PACKAGECONFIG[a52dec] = "-Da52dec=enabled,-Da52dec=disabled,liba52"
33PACKAGECONFIG[cdio] = "-Dcdio=enabled,-Dcdio=disabled,libcdio"
34PACKAGECONFIG[dvdread] = "-Ddvdread=enabled,-Ddvdread=disabled,libdvdread"
35PACKAGECONFIG[mpeg2dec] = "-Dmpeg2dec=enabled,-Dmpeg2dec=disabled,mpeg2dec"
36PACKAGECONFIG[x264] = "-Dx264=enabled,-Dx264=disabled,x264"
37
38GSTREAMER_GPL = "${@bb.utils.filter('PACKAGECONFIG', 'a52dec cdio dvdread mpeg2dec x264', d)}"
39
40EXTRA_OEMESON += " \
41 -Ddoc=disabled \
42 -Dsidplay=disabled \
43"
44
45# Drop .imx from PV
46def get_gst_ver(v):
47 return oe.utils.trim_version(v, 3)
48
49FILES:${PN}-amrnb += "${datadir}/gstreamer-1.0/presets/GstAmrnbEnc.prs"
50FILES:${PN}-x264 += "${datadir}/gstreamer-1.0/presets/GstX264Enc.prs"
51
52COMPATIBLE_MACHINE = "(imx-nxp-bsp)"
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-python_1.22.0.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-python_1.22.0.imx.bb
deleted file mode 100644
index 6f38929a..00000000
--- a/recipes-multimedia/gstreamer/gstreamer1.0-python_1.22.0.imx.bb
+++ /dev/null
@@ -1,32 +0,0 @@
1SUMMARY = "Python bindings for GStreamer 1.0"
2DESCRIPTION = "GStreamer Python binding overrides (complementing the bindings \
3provided by python-gi) "
4HOMEPAGE = "http://cgit.freedesktop.org/gstreamer/gst-python/"
5SECTION = "multimedia"
6
7LICENSE = "LGPL-2.1-or-later"
8LIC_FILES_CHKSUM = "file://COPYING;md5=c34deae4e395ca07e725ab0076a5f740"
9
10SRC_URI = "https://gstreamer.freedesktop.org/src/${PNREAL}/${PNREAL}-${@get_gst_ver('${PV}')}.tar.xz"
11SRC_URI[sha256sum] = "6c63ad364ca4617eb2cbb3975ab26c66760eb3c7a6adf5be69f99c11e21ef3a5"
12
13DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base python3-pygobject"
14RDEPENDS:${PN} += "gstreamer1.0 gstreamer1.0-plugins-base python3-pygobject"
15
16PNREAL = "gst-python"
17
18S = "${WORKDIR}/${PNREAL}-${@get_gst_ver('${PV}')}"
19
20EXTRA_OEMESON += "\
21 -Dtests=disabled \
22 -Dplugin=enabled \
23 -Dlibpython-dir=${libdir} \
24"
25
26# Drop .imx from PV
27def get_gst_ver(v):
28 return oe.utils.trim_version(v, 3)
29
30inherit meson pkgconfig setuptools3-base upstream-version-is-even
31
32FILES:${PN} += "${libdir}/gstreamer-1.0"
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.22.0.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.22.0.imx.bb
deleted file mode 100644
index d569ea9f..00000000
--- a/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.22.0.imx.bb
+++ /dev/null
@@ -1,37 +0,0 @@
1SUMMARY = "A library on top of GStreamer for building an RTSP server"
2HOMEPAGE = "http://cgit.freedesktop.org/gstreamer/gst-rtsp-server/"
3SECTION = "multimedia"
4LICENSE = "LGPL-2.1-or-later"
5LIC_FILES_CHKSUM = "file://COPYING;md5=69333daa044cb77e486cc36129f7a770"
6
7DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base"
8
9PNREAL = "gst-rtsp-server"
10
11SRC_URI = "https://gstreamer.freedesktop.org/src/${PNREAL}/${PNREAL}-${@get_gst_ver("${PV}")}.tar.xz"
12
13SRC_URI[sha256sum] = "aea24eeb59ee5fadfac355de2f7cecb51966c3e147e5ad7cfb4c314f1a4086ed"
14
15S = "${WORKDIR}/${PNREAL}-${@get_gst_ver("${PV}")}"
16
17inherit meson pkgconfig upstream-version-is-even gobject-introspection
18
19EXTRA_OEMESON += " \
20 -Ddoc=disabled \
21 -Dexamples=disabled \
22 -Dtests=disabled \
23"
24
25GIR_MESON_ENABLE_FLAG = "enabled"
26GIR_MESON_DISABLE_FLAG = "disabled"
27
28# Drop .imx from PV
29def 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
33require gstreamer1.0-plugins-packaging.inc
34
35CVE_PRODUCT += "gst-rtsp-server"
36
37COMPATIBLE_MACHINE = "(imx-nxp-bsp)"
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.22.0.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.22.0.imx.bb
deleted file mode 100644
index 02dc86e4..00000000
--- a/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.22.0.imx.bb
+++ /dev/null
@@ -1,64 +0,0 @@
1SUMMARY = "VA-API support to GStreamer"
2HOMEPAGE = "https://gstreamer.freedesktop.org/"
3DESCRIPTION = "gstreamer-vaapi consists of a collection of VA-API \
4based plugins for GStreamer and helper libraries: `vaapidecode', \
5`vaapiconvert', and `vaapisink'."
6
7REALPN = "gstreamer-vaapi"
8
9LICENSE = "LGPL-2.1-or-later"
10LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c"
11
12SRC_URI = "https://gstreamer.freedesktop.org/src/${REALPN}/${REALPN}-${@get_gst_ver('${PV}')}.tar.xz"
13
14SRC_URI[sha256sum] = "593ccad19f88e5fa29f40f98356c007806bd535828707b1406944d16a90bdff5"
15
16S = "${WORKDIR}/${REALPN}-${@get_gst_ver('${PV}')}"
17DEPENDS = "libva gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad"
18
19inherit meson pkgconfig features_check upstream-version-is-even
20
21REQUIRED_DISTRO_FEATURES ?= "opengl"
22
23EXTRA_OEMESON += " \
24 -Ddoc=disabled \
25 -Dexamples=disabled \
26 -Dtests=enabled \
27"
28
29# Drop .imx from PV
30def get_gst_ver(v):
31 return oe.utils.trim_version(v, 3)
32
33PACKAGES =+ "${PN}-tests"
34
35# OpenGL packageconfig factored out to make it easy for distros
36# and BSP layers to pick either glx, egl, or no GL. By default,
37# try detecting X11 first, and if found (with OpenGL), use GLX,
38# otherwise try to check if EGL can be used.
39PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'glx', \
40 bb.utils.contains('DISTRO_FEATURES', 'opengl', 'egl', \
41 '', d), d)}"
42
43PACKAGECONFIG ??= "drm encoders \
44 ${PACKAGECONFIG_GL} \
45 ${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11', d)}"
46
47PACKAGECONFIG[drm] = "-Ddrm=enabled,-Ddrm=disabled,udev libdrm"
48PACKAGECONFIG[egl] = "-Degl=enabled,-Degl=disabled,virtual/egl"
49PACKAGECONFIG[encoders] = "-Dencoders=enabled,-Dencoders=disabled"
50PACKAGECONFIG[glx] = "-Dglx=enabled,-Dglx=disabled,virtual/libgl"
51PACKAGECONFIG[wayland] = "-Dwayland=enabled,-Dwayland=disabled,wayland-native wayland wayland-protocols"
52PACKAGECONFIG[x11] = "-Dx11=enabled,-Dx11=disabled,virtual/libx11 libxrandr libxrender"
53
54FILES:${PN} += "${libdir}/gstreamer-*/*.so"
55FILES:${PN}-dbg += "${libdir}/gstreamer-*/.debug"
56FILES:${PN}-dev += "${libdir}/gstreamer-*/*.a"
57FILES:${PN}-tests = "${bindir}/*"
58
59# correct .pc install location - fixed in upstream trunk
60do_install:append() {
61 mkdir -p ${D}/${libdir}/pkgconfig
62 mv ${D}/${libdir}/gstreamer-1.0/pkgconfig/*.pc ${D}/${libdir}/pkgconfig
63 rmdir ${D}/${libdir}/gstreamer-1.0/pkgconfig/
64}