qtbase: enable 'linuxfb' platform plugin

This plugin uses directly the framebuffer, so it can be used in non
X11-based systems, but it oly supports software rendered content,
no opengl/es.

https://jira.digi.com/browse/DEL-2607

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2016-09-22 12:13:49 +02:00
parent 6e96f4ac7e
commit 11ce6f30b7
3 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,2 @@
# Use LINUXFB platform plugin for images without X11
[ -f "/etc/init.d/xserver-nodm" ] || export QT_QPA_PLATFORM="linuxfb"

View File

@ -7,9 +7,11 @@ SRC_URI_append = " file://qt5.sh"
PACKAGECONFIG_GL_mx6ul = "gles2"
QT_CONFIG_FLAGS_append_mx6ul = "${@base_contains('DISTRO_FEATURES', 'x11', ' -no-eglfs', ' -eglfs', d)}"
PACKAGECONFIG_append = " accessibility examples icu sql-sqlite"
PACKAGECONFIG_append = " accessibility examples icu linuxfb sql-sqlite"
do_install_append() {
install -d ${D}${sysconfdir}/profile.d
install -m 0755 ${WORKDIR}/qt5.sh ${D}${sysconfdir}/profile.d/
}
PACKAGE_ARCH = "${MACHINE_ARCH}"