diff options
| author | Carlos Rafael Giani <crg7475@mailbox.org> | 2018-11-07 02:17:40 +0100 |
|---|---|---|
| committer | Otavio Salvador <otavio@ossystems.com.br> | 2018-11-08 16:37:01 -0200 |
| commit | 0882e308d544fbd8b8eb66ef66754e2c2fc20817 (patch) | |
| tree | 6fb682e33d722c674f83aa88da05b6e0d53d45a5 | |
| parent | 1611d2048a35c13d007958fc5c33e88536ff6a48 (diff) | |
| download | meta-freescale-0882e308d544fbd8b8eb66ef66754e2c2fc20817.tar.gz | |
libsdl2: Add CFLAGS for non-X11 builds with Vivante EGL headers
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>
| -rw-r--r-- | recipes-graphics/libsdl2/libsdl2_%.bbappend | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes-graphics/libsdl2/libsdl2_%.bbappend b/recipes-graphics/libsdl2/libsdl2_%.bbappend index 5eecfea87..303ea63a7 100644 --- a/recipes-graphics/libsdl2/libsdl2_%.bbappend +++ b/recipes-graphics/libsdl2/libsdl2_%.bbappend | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | # what vivante driver does libsdl2 mean? Anyway it fails with missing functions as | 1 | # what vivante driver does libsdl2 mean? Anyway it fails with missing functions as |
| 2 | # VIVANTE_Create VIVANTE_GLES_GetProcAddress VIVANTE_GLES_UnloadLibrary ... | 2 | # VIVANTE_Create VIVANTE_GLES_GetProcAddress VIVANTE_GLES_UnloadLibrary ... |
| 3 | EXTRA_OECONF_append_imxgpu2d = " --disable-video-vivante" | 3 | EXTRA_OECONF_append_imxgpu2d = " --disable-video-vivante" |
| 4 | |||
| 5 | CFLAGS_append_imxgpu = " -DLINUX \ | ||
| 6 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', '-DEGL_API_FB', d)} \ | ||
| 7 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '-DWL_EGL_PLATFORM', '', d)} \ | ||
| 8 | " | ||
