From bcd65427a1efa4ec89446c55cb5125fcdbc06cc5 Mon Sep 17 00:00:00 2001 From: Gabriel Valcazar Date: Fri, 20 Jul 2018 18:12:11 +0200 Subject: [PATCH] ccimx6/6qp: imx-gst1.0-plugin: add missing symbol to fix compilation This package depends on libg2d, and the latest version of this library's sources for imx6 platforms are currently unavailable. Among other things, the newer sources add a symbol needed by imx-gst1.0-plugin to compile, so this patch manually adds the symbol as a macro in the package's source code. https://jira.digi.com/browse/DEL-6078 Signed-off-by: Gabriel Valcazar --- ...d-define-a-G2D_AMPHION_INTERLACED-ma.patch | 27 +++++++++++++++++++ .../gstreamer/imx-gst1.0-plugin_%.bbappend | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 meta-digi-dey/recipes-multimedia/gstreamer/imx-gst1.0-plugin/0002-imx_2d_device_g2d-define-a-G2D_AMPHION_INTERLACED-ma.patch diff --git a/meta-digi-dey/recipes-multimedia/gstreamer/imx-gst1.0-plugin/0002-imx_2d_device_g2d-define-a-G2D_AMPHION_INTERLACED-ma.patch b/meta-digi-dey/recipes-multimedia/gstreamer/imx-gst1.0-plugin/0002-imx_2d_device_g2d-define-a-G2D_AMPHION_INTERLACED-ma.patch new file mode 100644 index 000000000..1fa126876 --- /dev/null +++ b/meta-digi-dey/recipes-multimedia/gstreamer/imx-gst1.0-plugin/0002-imx_2d_device_g2d-define-a-G2D_AMPHION_INTERLACED-ma.patch @@ -0,0 +1,27 @@ +From: Gabriel Valcazar +Date: Fri, 20 Jul 2018 18:04:55 +0200 +Subject: [PATCH] imx_2d_device_g2d: define a G2D_AMPHION_INTERLACED macro + +Currently, this symbol is not present in the libg2d used by imx6 platforms, so +this is a workaround to get the package to compile. + +https://jira.digi.com/browse/DEL-6078 + +Signed-off-by: Gabriel Valcazar +--- + libs/device-2d/imx_2d_device_g2d.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/libs/device-2d/imx_2d_device_g2d.c b/libs/device-2d/imx_2d_device_g2d.c +index 56dc550..e5d58c3 100755 +--- a/libs/device-2d/imx_2d_device_g2d.c ++++ b/libs/device-2d/imx_2d_device_g2d.c +@@ -27,6 +27,8 @@ + GST_DEBUG_CATEGORY_EXTERN (imx2ddevice_debug); + #define GST_CAT_DEFAULT imx2ddevice_debug + ++#define G2D_AMPHION_INTERLACED 0x10 ++ + typedef struct _Imx2DDeviceG2d { + gint capabilities; + struct g2d_surfaceEx src; diff --git a/meta-digi-dey/recipes-multimedia/gstreamer/imx-gst1.0-plugin_%.bbappend b/meta-digi-dey/recipes-multimedia/gstreamer/imx-gst1.0-plugin_%.bbappend index 0910aca5a..9cc4e0cb0 100644 --- a/meta-digi-dey/recipes-multimedia/gstreamer/imx-gst1.0-plugin_%.bbappend +++ b/meta-digi-dey/recipes-multimedia/gstreamer/imx-gst1.0-plugin_%.bbappend @@ -3,3 +3,5 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${BP}:" SRC_URI += "file://0001-gstimxv4l2-map-dev-video1-to-dev-fb0.patch" + +SRC_URI_append_ccimx6 = " file://0002-imx_2d_device_g2d-define-a-G2D_AMPHION_INTERLACED-ma.patch"