[yocto] [meta-raspberrypi][PATCH] qtbase: enable Raspberry Pi support
Jonathan Liu
net147 at gmail.com
Sat Aug 22 02:11:19 PDT 2015
[Support #16]
Signed-off-by: Jonathan Liu <net147 at gmail.com>
---
recipes-qt/qt5/qtbase_%.bbappend | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
create mode 100644 recipes-qt/qt5/qtbase_%.bbappend
diff --git a/recipes-qt/qt5/qtbase_%.bbappend b/recipes-qt/qt5/qtbase_%.bbappend
new file mode 100644
index 0000000..d3d41e2
--- /dev/null
+++ b/recipes-qt/qt5/qtbase_%.bbappend
@@ -0,0 +1,21 @@
+do_configure_prepend_rpi() {
+ if ! grep -q '^EGLFS_' ${S}/mkspecs/linux-oe-g++/qmake.conf; then
+ cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf << 'EOF'
+QMAKE_INCDIR_EGL = $$[QT_SYSROOT]${includedir}/interface/vcos/pthreads \
+ $$[QT_SYSROOT]${includedir}/interface/vmcs_host/linux
+QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL}
+QMAKE_LIBS_EGL = -lEGL -lGLESv2
+EOF
+
+ if [ -d ${S}/src/plugins/platforms/eglfs/deviceintegration/eglfs_brcm ]; then
+ cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf << 'EOF'
+EGLFS_DEVICE_INTEGRATION = eglfs_brcm
+EOF
+ else
+ cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf << 'EOF'
+EGLFS_PLATFORM_HOOKS_LIBS = -lbcm_host
+EGLFS_PLATFORM_HOOKS_SOURCES = $$PWD/../devices/linux-rasp-pi-g++/qeglfshooks_pi.cpp
+EOF
+ fi
+ fi
+}
--
2.5.0
More information about the yocto
mailing list