Freescale's default eglplatform.h contains framebuffer headers while
X11 compatible headers are located in eglplatform_1.4.h [1], therefore
overwrite eglplatform.h with eglplatform_1.4.h during install.
This fixes EGL on X support through xcb.
For instance Qt5 would fail to enable CFG_EGL_X [2] due to the
following build error during configure :
invalid conversion from 'EGLNativeDisplayType {aka void*}' to
'Display* {aka _XDisplay*}' [-fpermissive]
This further resulted in a runtime error with Qt5_CinematicExperience:
QXcbIntegration: Cannot create platform OpenGL context, neither GLX
nor EGL are enabled
[1]: http://lists.busybox.net/pipermail/buildroot/2014-November/111475.html
[2]: https://codereview.qt-project.org/#/c/77523/
Signed-off-by: Florian Vallee <fvallee@eukrea.fr>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
RCONFLICTS_${PN} = "amd-gpu-bin-mx51"
COMPATIBLE_MACHINE = "${@base_contains('DISTRO_FEATURES', 'x11', '(mx5)', 'Invalid!', d)}"
+
+do_install_append() {
+ # eglplatform_1.4.h contains X11 compatible headers
+ rm ${D}${includedir}/EGL/eglplatform.h
+ mv ${D}${includedir}/EGL/eglplatform_1.4.h ${D}${includedir}/EGL/eglplatform.h
+}