summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dynamic-layers/openembedded-layer/recipes-multimedia/mpv/mpv_%.bbappend2
-rw-r--r--recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc11
-rw-r--r--recipes-graphics/wayland/weston-init.bbappend9
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0001-v4l2-Include-gst-allocators-gstdmabuf.h-for-gst_is_d.patch32
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.20.3.imx.bb1
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-python_1.20.3.imx.bb2
6 files changed, 51 insertions, 6 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-multimedia/mpv/mpv_%.bbappend b/dynamic-layers/openembedded-layer/recipes-multimedia/mpv/mpv_%.bbappend
new file mode 100644
index 00000000..5cf6d411
--- /dev/null
+++ b/dynamic-layers/openembedded-layer/recipes-multimedia/mpv/mpv_%.bbappend
@@ -0,0 +1,2 @@
1# testbuild/../test.c:10: undefined reference to `glXCreateContext'
2PACKAGECONFIG:remove:imxgpu = "x11"
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
index 94d70564..875cd511 100644
--- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
+++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
@@ -188,10 +188,6 @@ IMX_SOC:mx8ulp-nxp-bsp = "mx8ulp"
188 188
189LIBVULKAN_API_VERSION = "1.2.182" 189LIBVULKAN_API_VERSION = "1.2.182"
190 190
191SUPPORTS_OPENCL_VX_INTRINSIC_EXTENSION = "false"
192SUPPORTS_OPENCL_VX_INTRINSIC_EXTENSION:mx8qm-nxp-bsp = "true"
193SUPPORTS_OPENCL_VX_INTRINSIC_EXTENSION:mx8mp-nxp-bsp = "true"
194
195do_install () { 191do_install () {
196 install -d ${D}${libdir} 192 install -d ${D}${libdir}
197 install -d ${D}${includedir} 193 install -d ${D}${includedir}
@@ -262,7 +258,7 @@ do_install () {
262 install -d ${D}${sysconfdir}/OpenCL/vendors/ 258 install -d ${D}${sysconfdir}/OpenCL/vendors/
263 install -m 0644 ${S}/gpu-core/etc/Vivante.icd ${D}${sysconfdir}/OpenCL/vendors/Vivante.icd 259 install -m 0644 ${S}/gpu-core/etc/Vivante.icd ${D}${sysconfdir}/OpenCL/vendors/Vivante.icd
264 260
265 if ! ${SUPPORTS_OPENCL_VX_INTRINSIC_EXTENSION}; then 261 if [ "${OPENCL_VX_INTRINSIC_EXTENSION_PACKAGES}" = "" ]; then
266 rm -f ${D}${includedir}/CL/cl_viv_vx_ext.h 262 rm -f ${D}${includedir}/CL/cl_viv_vx_ext.h
267 fi 263 fi
268 fi 264 fi
@@ -373,7 +369,10 @@ FILES:libopenvx-imx = " \
373 ${libdir}/libArchModelSw${SOLIBS} \ 369 ${libdir}/libArchModelSw${SOLIBS} \
374" 370"
375FILES:libopenvx-imx-dev = "${includedir}/VX ${libdir}/libOpenVX${SOLIBSDEV}" 371FILES:libopenvx-imx-dev = "${includedir}/VX ${libdir}/libOpenVX${SOLIBSDEV}"
376RDEPENDS:libopenvx-imx = "libnn-imx" 372RDEPENDS:libopenvx-imx = "libnn-imx ${OPENCL_VX_INTRINSIC_EXTENSION_PACKAGES}"
373OPENCL_VX_INTRINSIC_EXTENSION_PACKAGES = ""
374OPENCL_VX_INTRINSIC_EXTENSION_PACKAGES:mx8qm-nxp-bsp = "libclc-imx libopencl-imx-dev"
375OPENCL_VX_INTRINSIC_EXTENSION_PACKAGES:mx8mp-nxp-bsp = "libclc-imx libopencl-imx-dev"
377 376
378# libGL is only targeting X11 backend, and in case if Wayland-only is used - 377# libGL is only targeting X11 backend, and in case if Wayland-only is used -
379# package QA complains on missing RDEPENDS, which are only available for X11. 378# package QA complains on missing RDEPENDS, which are only available for X11.
diff --git a/recipes-graphics/wayland/weston-init.bbappend b/recipes-graphics/wayland/weston-init.bbappend
index 69a807a3..595633b0 100644
--- a/recipes-graphics/wayland/weston-init.bbappend
+++ b/recipes-graphics/wayland/weston-init.bbappend
@@ -10,12 +10,16 @@ SRC_URI:append:mx6sl-nxp-bsp = " file://weston.config"
10 10
11PACKAGECONFIG ??= " \ 11PACKAGECONFIG ??= " \
12 no-idle-timeout \ 12 no-idle-timeout \
13 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xwayland', '', d)} \
13 ${PACKAGECONFIG_GBM_FORMAT} \ 14 ${PACKAGECONFIG_GBM_FORMAT} \
14 ${PACKAGECONFIG_REPAINT_WINDOW} \ 15 ${PACKAGECONFIG_REPAINT_WINDOW} \
15 ${PACKAGECONFIG_SIZE} \ 16 ${PACKAGECONFIG_SIZE} \
16 ${PACKAGECONFIG_USE_G2D} \ 17 ${PACKAGECONFIG_USE_G2D} \
17" 18"
18 19
20# Mainline BSPs dont support xwayland
21PACKAGECONFIG:remove:use-mainline-bsp = "xwayland"
22
19PACKAGECONFIG_GBM_FORMAT ?= "" 23PACKAGECONFIG_GBM_FORMAT ?= ""
20PACKAGECONFIG_GBM_FORMAT:mx8mq-nxp-bsp ?= "gbm-format" 24PACKAGECONFIG_GBM_FORMAT:mx8mq-nxp-bsp ?= "gbm-format"
21 25
@@ -46,6 +50,7 @@ PACKAGECONFIG[rdp] = ",,"
46PACKAGECONFIG[repaint-window] = ",," 50PACKAGECONFIG[repaint-window] = ",,"
47PACKAGECONFIG[size] = ",," 51PACKAGECONFIG[size] = ",,"
48PACKAGECONFIG[use-g2d] = ",," 52PACKAGECONFIG[use-g2d] = ",,"
53PACKAGECONFIG[xwayland] = ",,"
49 54
50do_install:append() { 55do_install:append() {
51 if [ -f "${WORKDIR}/weston.config" ]; then 56 if [ -f "${WORKDIR}/weston.config" ]; then
@@ -75,5 +80,9 @@ do_install:append() {
75 sed -i -e "/^\[core\]/a #use-g2d=${USE_G2D_VALUE}" ${D}${sysconfdir}/xdg/weston/weston.ini 80 sed -i -e "/^\[core\]/a #use-g2d=${USE_G2D_VALUE}" ${D}${sysconfdir}/xdg/weston/weston.ini
76 fi 81 fi
77 82
83 if [ "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', 'yes', 'no', d)}" = "no" ]; then
84 sed -i -e "s/^xwayland=true/#xwayland=true/g" ${D}${sysconfdir}/xdg/weston/weston.ini
85 fi
86
78 sed -i -e 's,@bindir@,${bindir},g' ${D}${sysconfdir}/xdg/weston/weston.ini 87 sed -i -e 's,@bindir@,${bindir},g' ${D}${sysconfdir}/xdg/weston/weston.ini
79} 88}
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0001-v4l2-Include-gst-allocators-gstdmabuf.h-for-gst_is_d.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0001-v4l2-Include-gst-allocators-gstdmabuf.h-for-gst_is_d.patch
new file mode 100644
index 00000000..1345dd4f
--- /dev/null
+++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0001-v4l2-Include-gst-allocators-gstdmabuf.h-for-gst_is_d.patch
@@ -0,0 +1,32 @@
1From dc5d752ec3fbec10402aa60fa8245e384e0c7206 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 7 Jun 2023 22:53:47 -0700
4Subject: [PATCH] v4l2: Include gst/allocators/gstdmabuf.h for
5 gst_is_dmabuf_memory()
6
7This is flagged by clang-16
8../git/sys/v4l2/gstv4l2videoenc.c:756:9: error: call to undeclared function 'gst_is_dmabuf_memory'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
9 if (gst_is_dmabuf_memory (gst_buffer_peek_memory (frame->input_buffer, 0))
10 ^
11
12Upstream-Status: Submitted [https://github.com/nxp-imx/gst-plugins-good/pull/2]
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 sys/v4l2/gstv4l2videoenc.c | 1 +
16 1 file changed, 1 insertion(+)
17
18diff --git a/sys/v4l2/gstv4l2videoenc.c b/sys/v4l2/gstv4l2videoenc.c
19index a505a228f..f24d5a795 100644
20--- a/sys/v4l2/gstv4l2videoenc.c
21+++ b/sys/v4l2/gstv4l2videoenc.c
22@@ -36,6 +36,7 @@
23
24 #include <string.h>
25 #include <gst/gst-i18n-plugin.h>
26+#include <gst/allocators/gstdmabuf.h>
27
28 GST_DEBUG_CATEGORY_STATIC (gst_v4l2_video_enc_debug);
29 #define GST_CAT_DEFAULT gst_v4l2_video_enc_debug
30--
312.41.0
32
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.20.3.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.20.3.imx.bb
index 95c8657e..95e33d5b 100644
--- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.20.3.imx.bb
+++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.20.3.imx.bb
@@ -13,6 +13,7 @@ BUGTRACKER = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues
13 13
14SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-${PV}.tar.xz \ 14SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-${PV}.tar.xz \
15 file://0001-qt-include-ext-qt-gstqtgl.h-instead-of-gst-gl-gstglf.patch \ 15 file://0001-qt-include-ext-qt-gstqtgl.h-instead-of-gst-gl-gstglf.patch \
16 file://0001-v4l2-Include-gst-allocators-gstdmabuf.h-for-gst_is_d.patch \
16 " 17 "
17 18
18SRC_URI[sha256sum] = "f8f3c206bf5cdabc00953920b47b3575af0ef15e9f871c0b6966f6d0aa5868b7" 19SRC_URI[sha256sum] = "f8f3c206bf5cdabc00953920b47b3575af0ef15e9f871c0b6966f6d0aa5868b7"
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-python_1.20.3.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-python_1.20.3.imx.bb
index d3c29ff7..4da992ee 100644
--- a/recipes-multimedia/gstreamer/gstreamer1.0-python_1.20.3.imx.bb
+++ b/recipes-multimedia/gstreamer/gstreamer1.0-python_1.20.3.imx.bb
@@ -28,3 +28,5 @@ def get_gst_ver(v):
28 return oe.utils.trim_version(v, 3) 28 return oe.utils.trim_version(v, 3)
29 29
30inherit meson pkgconfig setuptools3-base upstream-version-is-even 30inherit meson pkgconfig setuptools3-base upstream-version-is-even
31
32FILES:${PN} += "${libdir}/gstreamer-1.0"