[meta-freescale] [PATCH] weston: Append EGL_CFLAGS to CFLAGS for imxgpu2d

Fabio Berton fabio.berton at ossystems.com.br
Fri Jan 26 07:54:42 PST 2018


When building weston for imxgpu2d machine, CFLAGS doesn't get
EGL_CFLAGS value and cause the error bellow:

| ../build/tmp/sysroots/imx6sl-warp/usr/include/EGL/eglvivante.h:266:2: error: #error "Platform not recognized"
|  #error "Platform not recognized"

Signed-off-by: Fabio Berton <fabio.berton at ossystems.com.br>
---
 recipes-graphics/wayland/weston_2.0.0.bbappend | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/recipes-graphics/wayland/weston_2.0.0.bbappend b/recipes-graphics/wayland/weston_2.0.0.bbappend
index 3b744e3d..7d0e589d 100644
--- a/recipes-graphics/wayland/weston_2.0.0.bbappend
+++ b/recipes-graphics/wayland/weston_2.0.0.bbappend
@@ -30,4 +30,7 @@ EXTRA_OECONF_append = "${IMX_EXTRA_OECONF_OPENGL}"
 
 PACKAGECONFIG_append_imxgpu3d = " cairo-glesv2"
 
+# Append EGL_CFLAGS to CFLAGS for imxgpu2d
+CFLAGS_append_imxgpu2d = "-DLINUX -DEGL_API_FB -DWL_EGL_PLATFORM"
+
 RDEPENDS_${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-loginuid', '', d)}"
-- 
2.14.2



More information about the meta-freescale mailing list