Skip to contentSkip to conversation

qtbase: enable Raspberry Pi support

PATCH Applied Jonathan Liu 3 participants 6 messages Nov 15, 2015 – Dec 2, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v5 1/1 qtbase: enable Raspberry Pi support

[Support #16]

---
 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
conf/machine/include/rpi-base.inc +3 -0
index e097702..b390705 100644
@@ -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}"
recipes-qt/qt5/qtbase_%.bbappend new file +8 -0
new file mode 100644
index 0000000..7775e70
@@ -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
+}
Signature · 1 line
2.6.2
#1 lore raw
Quoted 26 lines · Jonathan Liu

[Support #16]

---
 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
conf/machine/include/rpi-base.inc +3 -0
index e097702..b390705 100644
@@ -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}"
recipes-qt/qt5/qtbase_%.bbappend new file +0 -0
new file mode 100644
index 0000000..7775e70

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

Quoted 3 lines
recipes-qt/qt5/qtbase_%.bbappend new file +3 -0
@@ -0,0 +1,8 @@
+do_configure_prepend_rpi() {
+    cat > ${S}/mkspecs/oe-device-extra.pri << 'EOF'
+EGLFS_DEVICE_INTEGRATION = eglfs_brcm

should this should be controlled based on a knob for userspace binary driver or open source kernel driver is used.

Quoted 13 lines
recipes-qt/qt5/qtbase_%.bbappend new file +5 -1
+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

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#2 lore raw
Quoted 17 lines · Khem Raj
Quoted 16 lines · Jonathan Liu

[Support #16]

---
  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

conf/machine/include/rpi-base.inc +0 -0
index e097702..b390705 100644
@@ -48,3 +48,6 @@ MACHINE_EXTRA_RRECOMMENDS += " kernel-modules"
  SPLASH = "psplash-raspberrypi"
 
Quoted 15 lines

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

Quoted 13 lines
conf/machine/include/rpi-base.inc +3 -0
  IMAGE_BOOT_FILES ?= "bcm2835-bootfiles/* ${KERNEL_IMAGETYPE};${SDIMG_KERNELIMAGE}"
+
+# Qt packages are machine specific due to RPi integration
+QT_PACKAGES_ARCH = "${MACHINE_ARCH}"
recipes-qt/qt5/qtbase_%.bbappend new file +3 -0
new file mode 100644
index 0000000..7775e70
@@ -0,0 +1,8 @@
+do_configure_prepend_rpi() {
+    cat > ${S}/mkspecs/oe-device-extra.pri << 'EOF'
+EGLFS_DEVICE_INTEGRATION = eglfs_brcm

should this should be controlled based on a knob for userspace binary driver or open source kernel driver is used.

I am not sure whether the open source kernel driver is complete enough. Have you tested it? Do you have any patch to get it running with Qt?

Quoted 14 lines
Quoted 14 lines
recipes-qt/qt5/qtbase_%.bbappend new file +5 -1
+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

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#3 lore raw
Quoted 40 lines · Jonathan Liu
Quoted 29 lines · Khem Raj
Quoted 27 lines · Jonathan Liu

[Support #16]

---
  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

conf/machine/include/rpi-base.inc +0 -0
index e097702..b390705 100644
@@ -48,3 +48,6 @@ MACHINE_EXTRA_RRECOMMENDS += " kernel-modules"
  SPLASH = "psplash-raspberrypi"
 
  IMAGE_BOOT_FILES ?= "bcm2835-bootfiles/*

${KERNEL_IMAGETYPE};${SDIMG_KERNELIMAGE}"

conf/machine/include/rpi-base.inc +3 -0
+
+# Qt packages are machine specific due to RPi integration
+QT_PACKAGES_ARCH = "${MACHINE_ARCH}"
recipes-qt/qt5/qtbase_%.bbappend new file +0 -1
new file mode 100644
index 0000000..7775e70
--- /dev/null
Quoted 9 lines

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

Quoted 6 lines

+++ b/recipes-qt/qt5/qtbase_%.bbappend

recipes-qt/qt5/qtbase_%.bbappend new file +3 -0
@@ -0,0 +1,8 @@
+do_configure_prepend_rpi() {
+    cat > ${S}/mkspecs/oe-device-extra.pri << 'EOF'
+EGLFS_DEVICE_INTEGRATION = eglfs_brcm

should this should be controlled based on a knob for userspace binary driver or open source kernel driver is used.

Quoted 2 lines

I am not sure whether the open source kernel driver is complete enough. Have you tested it? Do you have any patch to get it running with Qt?

It works or not is not the point. The fact it exists we need to make adjustment for it

Quoted 17 lines
Quoted 16 lines

+QMAKE_INCDIR_EGL = $$[QT_SYSROOT]${includedir}/interface/vmcs_host/linux

Quoted 13 lines
recipes-qt/qt5/qtbase_%.bbappend new file +4 -1
+QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL}
+QMAKE_LIBS_EGL = -lEGL -lGLESv2
+EOF
+}
--

2.6.2

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#5 lore raw
Quoted 8 lines · Andrei Gherzan
Quoted 4 lines · Jonathan Liu

[Support #16]

---

Merged to master. Thank you.

Ignore this. It was not merged. Messed up the threads. Sorry for the noise.

Quoted 2 lines
Signature · 1 line
Andrei Gherzan
Signature · 1 line
Andrei Gherzan