All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-raspberrypi][PATCH v3] qtbase: enable Raspberry Pi support
@ 2015-10-26 10:49 Jonathan Liu
  2015-10-26 11:44 ` Martin Jansa
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Liu @ 2015-10-26 10:49 UTC (permalink / raw)
  To: yocto

[Support #16]

Signed-off-by: Jonathan Liu <net147@gmail.com>
---
 recipes-qt/qt5/qtbase_%.bbappend | 8 ++++++++
 1 file changed, 8 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..b20138a
--- /dev/null
+++ b/recipes-qt/qt5/qtbase_%.bbappend
@@ -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
+}
-- 
2.6.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [meta-raspberrypi][PATCH v3] qtbase: enable Raspberry Pi support
  2015-10-26 10:49 [meta-raspberrypi][PATCH v3] qtbase: enable Raspberry Pi support Jonathan Liu
@ 2015-10-26 11:44 ` Martin Jansa
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Jansa @ 2015-10-26 11:44 UTC (permalink / raw)
  To: Jonathan Liu; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1835 bytes --]

On Mon, Oct 26, 2015 at 09:49:54PM +1100, Jonathan Liu wrote:
> [Support #16]
> 
> Signed-off-by: Jonathan Liu <net147@gmail.com>
> ---
>  recipes-qt/qt5/qtbase_%.bbappend | 8 ++++++++
>  1 file changed, 8 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..b20138a
> --- /dev/null
> +++ b/recipes-qt/qt5/qtbase_%.bbappend
> @@ -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).

> +
> +do_configure_prepend_rpi() {
> +    cat > ${S}/mkspecs/oe-device-extra.pri << 'EOF'
> +EGLFS_DEVICE_INTEGRATION = eglfs_brcm
> +QMAKE_LIBS_EGL = -lEGL -lGLESv2
> +EOF
> +}
> -- 
> 2.6.1
> 
> -- 
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-26 11:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-26 10:49 [meta-raspberrypi][PATCH v3] qtbase: enable Raspberry Pi support Jonathan Liu
2015-10-26 11:44 ` Martin Jansa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.