aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-graphics/libsdl2/libsdl2_%.bbappend
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-graphics/libsdl2/libsdl2_%.bbappend')
-rw-r--r--recipes-graphics/libsdl2/libsdl2_%.bbappend5
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes-graphics/libsdl2/libsdl2_%.bbappend b/recipes-graphics/libsdl2/libsdl2_%.bbappend
index 5eecfea8..303ea63a 100644
--- a/recipes-graphics/libsdl2/libsdl2_%.bbappend
+++ b/recipes-graphics/libsdl2/libsdl2_%.bbappend
@@ -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)} \
+"