diff options
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 000000000..5cf6d411c --- /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' | ||
| 2 | PACKAGECONFIG: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 94d70564b..875cd5112 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 | ||
| 189 | LIBVULKAN_API_VERSION = "1.2.182" | 189 | LIBVULKAN_API_VERSION = "1.2.182" |
| 190 | 190 | ||
| 191 | SUPPORTS_OPENCL_VX_INTRINSIC_EXTENSION = "false" | ||
| 192 | SUPPORTS_OPENCL_VX_INTRINSIC_EXTENSION:mx8qm-nxp-bsp = "true" | ||
| 193 | SUPPORTS_OPENCL_VX_INTRINSIC_EXTENSION:mx8mp-nxp-bsp = "true" | ||
| 194 | |||
| 195 | do_install () { | 191 | do_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 | " |
| 375 | FILES:libopenvx-imx-dev = "${includedir}/VX ${libdir}/libOpenVX${SOLIBSDEV}" | 371 | FILES:libopenvx-imx-dev = "${includedir}/VX ${libdir}/libOpenVX${SOLIBSDEV}" |
| 376 | RDEPENDS:libopenvx-imx = "libnn-imx" | 372 | RDEPENDS:libopenvx-imx = "libnn-imx ${OPENCL_VX_INTRINSIC_EXTENSION_PACKAGES}" |
| 373 | OPENCL_VX_INTRINSIC_EXTENSION_PACKAGES = "" | ||
| 374 | OPENCL_VX_INTRINSIC_EXTENSION_PACKAGES:mx8qm-nxp-bsp = "libclc-imx libopencl-imx-dev" | ||
| 375 | OPENCL_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 69a807a3b..595633b04 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 | ||
| 11 | PACKAGECONFIG ??= " \ | 11 | PACKAGECONFIG ??= " \ |
| 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 | ||
| 21 | PACKAGECONFIG:remove:use-mainline-bsp = "xwayland" | ||
| 22 | |||
| 19 | PACKAGECONFIG_GBM_FORMAT ?= "" | 23 | PACKAGECONFIG_GBM_FORMAT ?= "" |
| 20 | PACKAGECONFIG_GBM_FORMAT:mx8mq-nxp-bsp ?= "gbm-format" | 24 | PACKAGECONFIG_GBM_FORMAT:mx8mq-nxp-bsp ?= "gbm-format" |
| 21 | 25 | ||
| @@ -46,6 +50,7 @@ PACKAGECONFIG[rdp] = ",," | |||
| 46 | PACKAGECONFIG[repaint-window] = ",," | 50 | PACKAGECONFIG[repaint-window] = ",," |
| 47 | PACKAGECONFIG[size] = ",," | 51 | PACKAGECONFIG[size] = ",," |
| 48 | PACKAGECONFIG[use-g2d] = ",," | 52 | PACKAGECONFIG[use-g2d] = ",," |
| 53 | PACKAGECONFIG[xwayland] = ",," | ||
| 49 | 54 | ||
| 50 | do_install:append() { | 55 | do_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 000000000..1345dd4f0 --- /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 @@ | |||
| 1 | From dc5d752ec3fbec10402aa60fa8245e384e0c7206 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Wed, 7 Jun 2023 22:53:47 -0700 | ||
| 4 | Subject: [PATCH] v4l2: Include gst/allocators/gstdmabuf.h for | ||
| 5 | gst_is_dmabuf_memory() | ||
| 6 | |||
| 7 | This 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 | |||
| 12 | Upstream-Status: Submitted [https://github.com/nxp-imx/gst-plugins-good/pull/2] | ||
| 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 14 | --- | ||
| 15 | sys/v4l2/gstv4l2videoenc.c | 1 + | ||
| 16 | 1 file changed, 1 insertion(+) | ||
| 17 | |||
| 18 | diff --git a/sys/v4l2/gstv4l2videoenc.c b/sys/v4l2/gstv4l2videoenc.c | ||
| 19 | index 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 | -- | ||
| 31 | 2.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 95c8657e0..95e33d5b1 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 | ||
| 14 | SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-${PV}.tar.xz \ | 14 | SRC_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 | ||
| 18 | SRC_URI[sha256sum] = "f8f3c206bf5cdabc00953920b47b3575af0ef15e9f871c0b6966f6d0aa5868b7" | 19 | SRC_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 d3c29ff74..4da992ee9 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 | ||
| 30 | inherit meson pkgconfig setuptools3-base upstream-version-is-even | 30 | inherit meson pkgconfig setuptools3-base upstream-version-is-even |
| 31 | |||
| 32 | FILES:${PN} += "${libdir}/gstreamer-1.0" | ||
