From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH V2] allarch.bbclass: Set FEED_ARCH to original value of BASE_PACKAGE_ARCH and then set BASE_PACKAGE_ARCH to 'all'
Date: Wed, 15 Jun 2011 11:23:38 +0100 [thread overview]
Message-ID: <1308133418.15712.396.camel@rex> (raw)
In-Reply-To: <E322171D-B7A5-4F4B-974D-8CFDCC9C8DB5@dominion.thruhere.net>
On Wed, 2011-06-15 at 12:18 +0200, Koen Kooi wrote:
> Op 15 jun 2011, om 12:16 heeft Richard Purdie het volgende geschreven:
>
> > On Wed, 2011-06-15 at 09:00 +0200, Koen Kooi wrote:
> >> Op 15 jun 2011, om 01:12 heeft Khem Raj het volgende geschreven:
> >>
> >>> On Tue, Jun 14, 2011 at 2:44 PM, Koen Kooi <koen@dominion.thruhere.net> wrote:
> >>>>
> >>>> Op 14 jun 2011, om 23:40 heeft Khem Raj het volgende geschreven:
> >>>>
> >>>>> On Tue, Jun 14, 2011 at 2:32 PM, Koen Kooi <koen@dominion.thruhere.net> wrote:
> >>>>>>
> >>>>> BASE_PACKAGE_ARCH = "${@['armv5teb',
> >>>>> 'armv5te'][bb.data.getVar('SITEINFO_ENDIANESS', d, 1) == 'le']}"
> >>>>>
> >>>>> PACKAGE_EXTRA_ARCHS = "${@['armeb armv4b armv4tb armv5teb', 'arm armv4
> >>>>> armv4t armv5te'][bb.data.getVar('SITEINFO_ENDIANESS', d, 1) == 'le']}"
> >>>>>
> >>>>> and this does not get evaluated properly then
> >>>>
> >>>> But that wouldn't matter in the scope of allarch, though?
> >>>
> >>> SITEINFO_ENDIANESS = "${@siteinfo_get_endianess(d)}"
> >>>
> >>> def siteinfo_get_endianess(d):
> >>> info = get_siteinfo_list(d)
> >>> if 'endian-little' in info:
> >>> return "le"
> >>> elif 'endian-big' in info:
> >>> return "be"
> >>> bb.error("Site info could not determine endianess for target")
> >>>
> >>>
> >>> and
> >>> get_siteinfo_list has this
> >>>
> >>> targetinfo = {\
> >>> "allarch-linux": "",\
> >>>
> >>> hence siteinfo_get_endianess ends up with
> >>>
> >>> bb.error("Site info could not determine endianess for target")
> >>>
> >>> may be we need to differentiate with None return and empty string
> >>> return along with 'endian-little' and 'endian-big'
> >>> or may be add another option called 'endian-neutral'
> >>
> >> Or just add a bogus endianness: http://cgit.openembedded.org/cgit.cgi/meta-openembedded/commit/?id=f95ffd6cedb2a0fcad9db1b2d612663a327be87b
> >
> > This is just papering over cracks. "allarch" packages shouldn't be
> > querying endianness, it really is that simple.
>
> This isn't the recipes querying the endianness, but the class itself.
Er, if nothing references the appropriate variable, the query is never
made...
Cheers,
Richard
next prev parent reply other threads:[~2011-06-15 10:27 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-14 21:13 [PATCH V2] allarch.bbclass: Set FEED_ARCH to original value of BASE_PACKAGE_ARCH and then set BASE_PACKAGE_ARCH to 'all' Khem Raj
2011-06-14 21:18 ` Koen Kooi
2011-06-14 21:24 ` Richard Purdie
2011-06-14 21:32 ` Khem Raj
2011-06-14 21:33 ` Koen Kooi
2011-06-14 21:39 ` Khem Raj
2011-06-14 21:32 ` Koen Kooi
2011-06-14 21:40 ` Khem Raj
2011-06-14 21:44 ` Koen Kooi
2011-06-14 23:12 ` Khem Raj
2011-06-15 7:00 ` Koen Kooi
2011-06-15 10:16 ` Richard Purdie
2011-06-15 10:18 ` Koen Kooi
2011-06-15 10:23 ` Richard Purdie [this message]
2011-06-15 15:28 ` Khem Raj
2011-06-15 10:07 ` Richard Purdie
2011-06-15 10:15 ` Koen Kooi
2011-06-15 10:22 ` Richard Purdie
2011-06-15 10:37 ` Koen Kooi
2011-06-15 11:36 ` Richard Purdie
2011-06-15 11:52 ` Koen Kooi
2011-06-15 15:29 ` Mark Hatle
2011-06-15 8:56 ` Koen Kooi
2011-06-15 9:33 ` Richard Purdie
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=1308133418.15712.396.camel@rex \
--to=richard.purdie@linuxfoundation.org \
--cc=openembedded-core@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox