]> code.ossystems Code Review - meta-freescale.git/commitdiff
libsdl2: Add CFLAGS for non-X11 builds with Vivante EGL headers
authorCarlos Rafael Giani <crg7475@mailbox.org>
Wed, 7 Nov 2018 01:17:40 +0000 (02:17 +0100)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 8 Nov 2018 18:37:01 +0000 (16:37 -0200)
Without these, the Vivante EGL headers will try to include X11 headers,
causing the build to break.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-graphics/libsdl2/libsdl2_%.bbappend

index 5eecfea87557986754edc69c80e53bc83cd15e79..303ea63a7cf235d4827c35b2b85da1066a439f78 100644 (file)
@@ -1,3 +1,8 @@
 # what vivante driver does libsdl2 mean? Anyway it fails with missing functions as
 # VIVANTE_Create VIVANTE_GLES_GetProcAddress VIVANTE_GLES_UnloadLibrary ...
 EXTRA_OECONF_append_imxgpu2d = " --disable-video-vivante"
+
+CFLAGS_append_imxgpu = " -DLINUX \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', '-DEGL_API_FB', d)} \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '-DWL_EGL_PLATFORM', '', d)} \
+"