[yocto] [meta-raspberrypi][PATCH v5] qtbase: enable Raspberry Pi support
Jonathan Liu
net147 at gmail.com
Sun Nov 15 04:31:25 PST 2015
[Support #16]
Signed-off-by: Jonathan Liu <net147 at gmail.com>
---
conf/machine/include/rpi-base.inc | 3 +++
recipes-qt/qt5/qtbase_%.bbappend | 8 ++++++++
2 files changed, 11 insertions(+)
create mode 100644 recipes-qt/qt5/qtbase_%.bbappend
diff --git a/conf/machine/include/rpi-base.inc b/conf/machine/include/rpi-base.inc
index e097702..b390705 100644
--- a/conf/machine/include/rpi-base.inc
+++ b/conf/machine/include/rpi-base.inc
@@ -48,3 +48,6 @@ MACHINE_EXTRA_RRECOMMENDS += " kernel-modules"
SPLASH = "psplash-raspberrypi"
IMAGE_BOOT_FILES ?= "bcm2835-bootfiles/* ${KERNEL_IMAGETYPE};${SDIMG_KERNELIMAGE}"
+
+# Qt packages are machine specific due to RPi integration
+QT_PACKAGES_ARCH = "${MACHINE_ARCH}"
diff --git a/recipes-qt/qt5/qtbase_%.bbappend b/recipes-qt/qt5/qtbase_%.bbappend
new file mode 100644
index 0000000..7775e70
--- /dev/null
+++ b/recipes-qt/qt5/qtbase_%.bbappend
@@ -0,0 +1,8 @@
+do_configure_prepend_rpi() {
+ cat > ${S}/mkspecs/oe-device-extra.pri << 'EOF'
+EGLFS_DEVICE_INTEGRATION = eglfs_brcm
+QMAKE_INCDIR_EGL = $$[QT_SYSROOT]${includedir}/interface/vmcs_host/linux
+QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL}
+QMAKE_LIBS_EGL = -lEGL -lGLESv2
+EOF
+}
--
2.6.2
More information about the yocto
mailing list