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 <gabriel.valcazar@digi.com>
This commit is contained in:
Gabriel Valcazar 2018-07-20 18:12:11 +02:00
parent f646bc9ddb
commit bcd65427a1
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,27 @@
From: Gabriel Valcazar <gabriel.valcazar@digi.com>
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 <gabriel.valcazar@digi.com>
---
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;

View File

@ -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"