[yocto] [meta-raspberrypi][PATCH] Add recipe to build qtbase for raspberrypi out of the box.

Herve Jourdain herve.jourdain at neuf.fr
Thu Jan 19 05:16:05 PST 2017


Supports different EGLFS_DEVICE_INTEGRATION for userland or vc4

Signed-off-by: Herve Jourdain <herve.jourdain at neuf.fr>
---
 recipes-qt/qt5/qtbase_%.bbappend | 10 ++++++++++
 1 file changed, 10 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..aebcaf9
--- /dev/null
+++ b/recipes-qt/qt5/qtbase_%.bbappend
@@ -0,0 +1,10 @@
+PACKAGECONFIG_GL_rpi = "gles2 eglfs"
+DEPENDS_${PN}_append_rpi = " virtual/egl"
+
+OE_QTBASE_EGLFS_DEVICE_INTEGRATION = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', 'eglfs_kms', 'eglfs_brcm', d)}"
+
+do_configure_prepend() {
+    # Add the appropriate EGLFS_DEVICE_INTEGRATION, depending if using VC4 or USERLAND
+    echo "EGLFS_DEVICE_INTEGRATION = ${OE_QTBASE_EGLFS_DEVICE_INTEGRATION}" > ${S}/mkspecs/oe-device-extra.pri
+}
+
-- 
2.7.4




More information about the yocto mailing list