All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [meta-fsl-arm][PATCH v2 1/3] gstreamer1.0-plugins-imx: select X11/Wayland/FB EGL platform if appropriate
@ 2014-06-27 22:13 Carlos Rafael Giani
  2014-06-27 22:13 ` [meta-fsl-arm][PATCH v2 2/3] gstreamer1.0-plugins-bad: set correct EGL defines for Vivante GPUs Carlos Rafael Giani
  2014-06-27 22:13 ` [meta-fsl-arm][PATCH v2 3/3] efl: Add bbappend to make it work with the Vivante EGL headers Carlos Rafael Giani
  0 siblings, 2 replies; 3+ messages in thread
From: Carlos Rafael Giani @ 2014-06-27 22:13 UTC (permalink / raw
  To: meta-freescale

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
---
 recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_0.9.6.bb | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_0.9.6.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_0.9.6.bb
index 5074a2c..71d95f1 100644
--- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_0.9.6.bb
+++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_0.9.6.bb
@@ -14,7 +14,13 @@ S = "${WORKDIR}/git"
 inherit waf
 
 # configure the eglvivsink element to use the appropiate EGL platform code
-EGLVIVSINK_PLATFORM = "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', 'fb', d)}"
+# X11 if x11 is present in DISTRO_FEATURES
+# Wayland if x11 is not present in DISTRO_FEATURES, but wayland is
+# Framebuffer otherwise
+EGLVIVSINK_PLATFORM = "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', \
+                          base_contains('DISTRO_FEATURES', 'wayland', 'wayland', \
+                          'fb', d),d)}"
+
 EXTRA_OECONF = "--egl-platform=${EGLVIVSINK_PLATFORM} --kernel-headers=${STAGING_KERNEL_DIR}/include"
 
 # LIBV is used by gst-plugins-package.inc to specify the GStreamer version (0.10 vs 1.0)
-- 
1.8.3.2



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [meta-fsl-arm][PATCH v2 2/3] gstreamer1.0-plugins-bad: set correct EGL defines for Vivante GPUs
  2014-06-27 22:13 [meta-fsl-arm][PATCH v2 1/3] gstreamer1.0-plugins-imx: select X11/Wayland/FB EGL platform if appropriate Carlos Rafael Giani
@ 2014-06-27 22:13 ` Carlos Rafael Giani
  2014-06-27 22:13 ` [meta-fsl-arm][PATCH v2 3/3] efl: Add bbappend to make it work with the Vivante EGL headers Carlos Rafael Giani
  1 sibling, 0 replies; 3+ messages in thread
From: Carlos Rafael Giani @ 2014-06-27 22:13 UTC (permalink / raw
  To: meta-freescale

Without these, the package will not be built with the correct EGL
types and definitions

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
---
 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend

diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend
new file mode 100644
index 0000000..8be11a2
--- /dev/null
+++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend
@@ -0,0 +1,7 @@
+# Vivante EGL headers require the correct preprocessor
+# defines to be set for each platform
+CFLAGS_append_mx6 = " -DLINUX \
+                      ${@base_contains('DISTRO_FEATURES', 'x11', '', \
+                         base_contains('DISTRO_FEATURES', 'wayland', '-DEGL_API_FB -DEGL_API_WL', \
+                         base_contains('DISTRO_FEATURES', 'directfb', '-DEGL_API_DFB', \
+                         '-DEGL_API_FB', d),d),d)}"
-- 
1.8.3.2



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [meta-fsl-arm][PATCH v2 3/3] efl: Add bbappend to make it work with the Vivante EGL headers
  2014-06-27 22:13 [meta-fsl-arm][PATCH v2 1/3] gstreamer1.0-plugins-imx: select X11/Wayland/FB EGL platform if appropriate Carlos Rafael Giani
  2014-06-27 22:13 ` [meta-fsl-arm][PATCH v2 2/3] gstreamer1.0-plugins-bad: set correct EGL defines for Vivante GPUs Carlos Rafael Giani
@ 2014-06-27 22:13 ` Carlos Rafael Giani
  1 sibling, 0 replies; 3+ messages in thread
From: Carlos Rafael Giani @ 2014-06-27 22:13 UTC (permalink / raw
  To: meta-freescale

Without this, the enlightenment foundation libraries will fail to build,
because Vivante EGL headers require these extra preprocessor defines

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
---
 ...essor-definitions-for-Vivante-GLES-header.patch | 55 ++++++++++++++++++++++
 efl-layer/recipes-efl/efl/efl_1.9.3.bbappend       |  3 ++
 2 files changed, 58 insertions(+)
 create mode 100644 efl-layer/recipes-efl/efl/efl/0001-Add-preprocessor-definitions-for-Vivante-GLES-header.patch
 create mode 100644 efl-layer/recipes-efl/efl/efl_1.9.3.bbappend

diff --git a/efl-layer/recipes-efl/efl/efl/0001-Add-preprocessor-definitions-for-Vivante-GLES-header.patch b/efl-layer/recipes-efl/efl/efl/0001-Add-preprocessor-definitions-for-Vivante-GLES-header.patch
new file mode 100644
index 0000000..53f0a52
--- /dev/null
+++ b/efl-layer/recipes-efl/efl/efl/0001-Add-preprocessor-definitions-for-Vivante-GLES-header.patch
@@ -0,0 +1,55 @@
+From 0775633e35127e903a1a84d823bf2e7d388d4042 Mon Sep 17 00:00:00 2001
+From: Carlos Rafael Giani <dv@pseudoterminal.org>
+Date: Sun, 1 Jun 2014 01:57:53 +0200
+Subject: [PATCH] Add preprocessor definitions for Vivante GLES headers
+
+The Vivante headers require the LINUX preprocessor definition, otherwise
+compile errors occur
+
+Upstream-Status: Pending
+
+Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
+---
+ m4/evas_check_engine.m4 | 4 ++--
+ src/Makefile_Evas.am    | 2 ++
+ 2 files changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/m4/evas_check_engine.m4 b/m4/evas_check_engine.m4
+index 3fd4890..35d1c5f 100644
+--- a/m4/evas_check_engine.m4
++++ b/m4/evas_check_engine.m4
+@@ -26,9 +26,9 @@ EFL_FIND_X(evas_engine_[]$1,
+   [X11 XCreateColormap Xrender XRenderCreatePicture],
+   [
+     CFLAGS_save="$CFLAGS"
+-    CFLAGS="$evas_engine_[]$1[]_cflags $CFLAGS"
++    CFLAGS="$evas_engine_[]$1[]_cflags $CFLAGS -DLINUX"
+     CPPFLAGS_save="$CPPFLAGS"
+-    CPPFLAGS="$evas_engine_[]$1[]_cflags $CPPFLAGS"
++    CPPFLAGS="$evas_engine_[]$1[]_cflags $CPPFLAGS -DLINUX"
+ 
+     AC_CHECK_HEADER([GL/gl.h],
+       [have_dep="yes"],
+diff --git a/src/Makefile_Evas.am b/src/Makefile_Evas.am
+index 644391b..6232f78 100644
+--- a/src/Makefile_Evas.am
++++ b/src/Makefile_Evas.am
+@@ -632,6 +632,7 @@ lib_evas_libevas_la_LIBADD += @evas_engine_gl_common_libs@
+ else
+ noinst_LTLIBRARIES += modules/evas/engines/gl_common/libevas_engine_gl_common.la
+ modules_evas_engines_gl_common_libevas_engine_gl_common_la_SOURCES = $(GL_COMMON_SOURCES)
++modules_evas_engines_gl_common_libevas_engine_gl_common_la_CFLAGS = -DLINUX
+ modules_evas_engines_gl_common_libevas_engine_gl_common_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
+ -I$(top_srcdir)/src/lib/evas/include \
+ -I$(top_srcdir)/src/lib/evas/cserve2 \
+@@ -736,6 +737,7 @@ else
+ engineglx11pkgdir = $(libdir)/evas/modules/engines/gl_x11/$(MODULE_ARCH)
+ engineglx11pkg_LTLIBRARIES = modules/evas/engines/gl_x11/module.la
+ modules_evas_engines_gl_x11_module_la_SOURCES = $(GL_X11_SOURCES)
++modules_evas_engines_gl_x11_module_la_CFLAGS = -DLINUX
+ modules_evas_engines_gl_x11_module_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
+ -I$(top_srcdir)/src/lib/evas/include \
+ -I$(top_srcdir)/src/lib/evas/cserve2 \
+-- 
+1.8.3.2
+
diff --git a/efl-layer/recipes-efl/efl/efl_1.9.3.bbappend b/efl-layer/recipes-efl/efl/efl_1.9.3.bbappend
new file mode 100644
index 0000000..10c99d8
--- /dev/null
+++ b/efl-layer/recipes-efl/efl/efl_1.9.3.bbappend
@@ -0,0 +1,3 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SRC_URI += "file://0001-Add-preprocessor-definitions-for-Vivante-GLES-header.patch"
-- 
1.8.3.2



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-06-27 22:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-27 22:13 [meta-fsl-arm][PATCH v2 1/3] gstreamer1.0-plugins-imx: select X11/Wayland/FB EGL platform if appropriate Carlos Rafael Giani
2014-06-27 22:13 ` [meta-fsl-arm][PATCH v2 2/3] gstreamer1.0-plugins-bad: set correct EGL defines for Vivante GPUs Carlos Rafael Giani
2014-06-27 22:13 ` [meta-fsl-arm][PATCH v2 3/3] efl: Add bbappend to make it work with the Vivante EGL headers Carlos Rafael Giani

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.