Use eglplatform.h rather than vendor-specific eglvivante.h.

Signed-off-by: Tom Hochstein <tom.hochst...@nxp.com>
---
 ...place-vendor-specific-header-with-generic.patch | 28 ++++++++++++++++++++++
 recipes-graphics/eglinfo/eglinfo-fb_%.bbappend     |  6 +++++
 2 files changed, 34 insertions(+)
 create mode 100644 
recipes-graphics/eglinfo/eglinfo-fb/0001-Replace-vendor-specific-header-with-generic.patch

diff --git 
a/recipes-graphics/eglinfo/eglinfo-fb/0001-Replace-vendor-specific-header-with-generic.patch
 
b/recipes-graphics/eglinfo/eglinfo-fb/0001-Replace-vendor-specific-header-with-generic.patch
new file mode 100644
index 0000000..7c315c8
--- /dev/null
+++ 
b/recipes-graphics/eglinfo/eglinfo-fb/0001-Replace-vendor-specific-header-with-generic.patch
@@ -0,0 +1,28 @@
+From fdb3add3dfd53c539c3c79e4fbf9eedb1dc1e440 Mon Sep 17 00:00:00 2001
+From: Prabhu Sundararaj <prabhu.sundara...@nxp.com>
+Date: Fri, 26 Feb 2016 11:29:54 -0600
+Subject: [PATCH] Use generic eglplatform.h rather than vendor specifc
+ (eglvivante.h) EGL headers.
+
+Upstream-Status: Pending
+
+---
+ wscript | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/wscript b/wscript
+index 195e247..d08bc29 100644
+--- a/wscript
++++ b/wscript
+@@ -219,7 +219,7 @@ def check_vivante_egl(conf, egl_extra_defines):
+               extra_defines += egl_extra_defines
+       extra_cxxflags = map(lambda x: conf.env['DEFINES_ST'] % x, 
extra_defines)
+       conf.env['CXXFLAGS'] += extra_cxxflags
+-      conf.check_cxx(mandatory = 1, header_name = 'EGL/eglvivante.h', 
uselib_store = 'EGL')
++      conf.check_cxx(mandatory = 1, header_name = 'EGL/eglplatform.h', 
uselib_store = 'EGL')
+       conf.check_cxx(mandatory = 1, header_name = 'EGL/egl.h', uselib_store = 
'EGL')
+       conf.env['CXXFLAGS_EGL'] += extra_cxxflags
+       conf.env['CXXFLAGS'] = old_cxxflags
+-- 
+2.7.0
+
diff --git a/recipes-graphics/eglinfo/eglinfo-fb_%.bbappend 
b/recipes-graphics/eglinfo/eglinfo-fb_%.bbappend
index 7aa0e50..f130d23 100644
--- a/recipes-graphics/eglinfo/eglinfo-fb_%.bbappend
+++ b/recipes-graphics/eglinfo/eglinfo-fb_%.bbappend
@@ -1,2 +1,8 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SRC_URI_append_imxgpu3d = " \
+    file://0001-Replace-vendor-specific-header-with-generic.patch \
+"
+
 # Set i.MX specific dependencies and device type
 EGLINFO_DEVICE_imxgpu3d = "imx6"
-- 
1.9.1

-- 
_______________________________________________
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale

Reply via email to