From: Martin Jansa <martin.jansa@gmail.com>
To: Jonathan Liu <net147@gmail.com>
Cc: yocto@yoctoproject.org
Subject: Re: [meta-raspberrypi][PATCH v3] qtbase: enable Raspberry Pi support
Date: Mon, 26 Oct 2015 12:44:07 +0100 [thread overview]
Message-ID: <20151026114407.GA2554@jama> (raw)
In-Reply-To: <1445856594-27890-1-git-send-email-net147@gmail.com>
[-- 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 --]
prev parent reply other threads:[~2015-10-26 11:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-26 10:49 [meta-raspberrypi][PATCH v3] qtbase: enable Raspberry Pi support Jonathan Liu
2015-10-26 11:44 ` Martin Jansa [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151026114407.GA2554@jama \
--to=martin.jansa@gmail.com \
--cc=net147@gmail.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.