qt5base: fix "Unable to find an X11 visual" error
authorJérôme Pouiller <jezz@sysmic.org>
Thu, 30 Apr 2015 15:12:24 +0000 (17:12 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 1 May 2015 20:57:19 +0000 (22:57 +0200)
commit7e9f459adf22ac3a1b1def8f1c10df69b1e7f246
tree9a8cf961bd3f5f7bf51a5305fcc9090efb516fbb
parent1095b7ccda2bf52b3c0e385407a4431872889b26
qt5base: fix "Unable to find an X11 visual" error

Fix "Unable to find an X11 visual" bug that produce at runtime with Vivante
drivers. Add a conditionnal patch and add variable QT5BASE_EXTRA_CFLAGS in
order to enable workaround.

This patch is actually an improvement over the fix available in Yocto:
https://github.com/Freescale/meta-fsl-arm/blob/dizzy/qt5-layer/recipes-qt/qt5/qtbase/Force_egl_visual_ID_33.patch

[Thomas:
 - Add SoB from Jérôme Pouiller inside the patch imported from Yocto.
 - Add a space between $(TARGET_CFLAGS) and $(QT5BASE_EXTRA_CFLAGS),
   and ditto for CXXFLAGS.
 - Merge the QT5BASE_EXTRA_CFLAGS into an existing
   BR2_PACKAGE_GPU_VIV_BIN_MX6Q conditional.]

Tested-by: Gary Bisson <gary.bisson@boundarydevices.com>
Reviewed-by: Gary Bisson <gary.bisson@boundarydevices.com>
Signed-off-by: Jérôme Pouiller <jezz@sysmic.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/qt5/qt5base/0001-Force_egl_visual_ID_33.patch [new file with mode: 0644]
package/qt5/qt5base/qt5base.mk