Skip to contentSkip to conversation

qtbase: enable Raspberry Pi support

PATCH Superseded Jonathan Liu 2 participants 2 messages Oct 26, 2015

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 qtbase: enable Raspberry Pi support

[Support #16]

---
 recipes-qt/qt5/qtbase_%.bbappend | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 recipes-qt/qt5/qtbase_%.bbappend
recipes-qt/qt5/qtbase_%.bbappend new file +8 -0
new file mode 100644
index 0000000..b20138a
@@ -0,0 +1,8 @@
+PACKAGE_ARCH_rpi = "${MACHINE_ARCH}"
+
+do_configure_prepend_rpi() {
+    cat > ${S}/mkspecs/oe-device-extra.pri << 'EOF'
+EGLFS_DEVICE_INTEGRATION = eglfs_brcm
+QMAKE_LIBS_EGL = -lEGL -lGLESv2
+EOF
+}
Signature · 1 line
2.6.1
#1 lore raw
Quoted 14 lines · Jonathan Liu

[Support #16]

---
 recipes-qt/qt5/qtbase_%.bbappend | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 recipes-qt/qt5/qtbase_%.bbappend
recipes-qt/qt5/qtbase_%.bbappend new file +0 -0
new file mode 100644
index 0000000..b20138a

recipes-qt/qt5/qtbase_%.bbappend line 1

Quoted 1 line
recipes-qt/qt5/qtbase_%.bbappend new file +1 -0
@@ -0,0 +1,8 @@
+PACKAGE_ARCH_rpi = "${MACHINE_ARCH}"

This makes all other qt* recipes (and everything which depends on them) also MACHINE_ARCH, you can use this code from qt5.inc:

# If Qt5 (qtbase) is machine specific, then everything will be,

# because the (initial) qtbase configuration becomes part of Qt5/qmake
python __anonymous() {
    barch = d.getVar("BUILD_ARCH", True) or ''
    tarch = d.getVar("TARGET_ARCH", True) or ''
    # do not do anything if we are building a native package
    if barch != tarch:
        tarch = d.getVar("QT_PACKAGES_ARCH", True) or ''
        if tarch:
            d.setVar("PACKAGE_ARCH", tarch)
}

and set QT_PACKAGES_ARCH to cover at least the recipes which are using qt5.inc (not the qt5 apps and other recipes).

That's why I didn't like the idea of making it MACHINE_ARCH in the first place (even though I understand there are cases where is no choice).

Quoted 15 lines
recipes-qt/qt5/qtbase_%.bbappend new file +7 -0
+
+do_configure_prepend_rpi() {
+    cat > ${S}/mkspecs/oe-device-extra.pri << 'EOF'
+EGLFS_DEVICE_INTEGRATION = eglfs_brcm
+QMAKE_LIBS_EGL = -lEGL -lGLESv2
+EOF
+}
Signature · 7 lines
2.6.1

-- 
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]