From: Richard Purdie <rpurdie@rpsys.net>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH 0/4][RFC] Remove CROSS_DIR, install cross-packages into native sysroot
Date: Fri, 23 Jul 2010 11:56:17 +0100 [thread overview]
Message-ID: <1279882577.13006.40.camel@rex> (raw)
In-Reply-To: <1279880258.2692.15.camel@mill.internal.reciva.com>
On Fri, 2010-07-23 at 11:17 +0100, Phil Blundell wrote:
> On Fri, 2010-07-23 at 09:59 +0100, Richard Purdie wrote:
> > On Fri, 2010-07-23 at 10:11 +0200, Koen Kooi wrote:
> > > It's all 'arm-angstrom-foo', I was just about to make the suggestion to
> > > change it to 'armv7a-angstrom-foo' :)
> >
> > I've just been talking to Koen about this. When building for armv7a,
> > TARGET_ARCH which goes into TARGET_PREFIX and TARGET_SYS is "arm".
>
> Ah, right, I see.
>
> > I suspect if we change TARGET_ARCH to be armv7a, nasty things will
> > happen but I could be wrong.
>
> I can't think offhand of any bad thing that would result from doing
> that. It certainly might be worth a try.
config.sub was in my mind as Esben mentioned. Our siteinfo code will
also probably get upset. Then there are the TARGET_SYS comparisons.
> On the other hand, I also can't think offhand of any significant way in
> which the gcc builds for different subarches are going to be different.
> The architecture selection is all done at run time using -march in
> CFLAGS, isn't it?
Well, the libgcc and stdc++ generated are different so we can't use one
build. I have so far failed to make gcc generate libgcc standalone as it
makes some horrible build assumptions. Even generating libstdc++
standalone was fun in Poky but I have that working at least.
The reason things break is we code the default sysroot option into gcc.
So if you start using the wrong one, you pull in the wrong kind of
binaries and depending on your build order at best it results in
unoptimised code and worst, the binaries won't run.
So in summary it'd be nice to have a single gcc per arch but we're not
there yet.
> > Is that libiberty.a file actually useful or could we just stop
> > binutils-cross installing it?
>
> No, it isn't useful.
I'm testing some patches against poky which add an extra directory level
in /usr/bin/. I've also patched binutils-cross to stop spewing excess
bits all over the place. I'll report back how it goes.
Longer term there are probably better fixes but there are too many
issues at present to do that.
Cheers,
Richard
next prev parent reply other threads:[~2010-07-23 10:57 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-21 18:04 [PATCH 0/4][RFC] Remove CROSS_DIR, install cross-packages into native sysroot Khem Raj
2010-07-21 18:04 ` [PATCH 1/4] classes, bitbake.conf: " Khem Raj
2010-07-21 21:52 ` Tom Rini
2010-07-21 18:04 ` [PATCH 2/4] toolchain: Remove references to CROSS_DIR Khem Raj
2010-07-21 21:52 ` Tom Rini
2010-07-21 18:04 ` [PATCH 3/4] recipes: Fix " Khem Raj
2010-07-21 21:53 ` Tom Rini
2010-07-21 18:04 ` [PATCH 4/4] sanity.bbclass, abi_version.conf: Bump the ABI to inform that cross has died Khem Raj
2010-07-21 21:53 ` Tom Rini
2010-07-21 21:52 ` [PATCH 0/4][RFC] Remove CROSS_DIR, install cross-packages into native sysroot Tom Rini
2010-07-22 8:27 ` Richard Purdie
2010-07-22 14:02 ` Chris Larson
2010-07-22 14:24 ` Martin Jansa
2010-07-22 14:54 ` Koen Kooi
2010-07-23 7:25 ` Koen Kooi
2010-07-23 8:02 ` Phil Blundell
2010-07-23 8:11 ` Koen Kooi
2010-07-23 8:59 ` Richard Purdie
2010-07-23 9:18 ` Frans Meulenbroeks
2010-07-23 17:20 ` Khem Raj
2010-07-23 17:30 ` Chris Larson
2010-07-23 17:41 ` Khem Raj
2010-07-23 20:44 ` Khem Raj
2010-07-24 2:31 ` Khem Raj
2010-07-23 9:35 ` Esben Haabendal
2010-07-23 10:08 ` Koen Kooi
2010-07-23 10:23 ` Phil Blundell
2010-07-23 11:24 ` Richard Purdie
2010-07-23 11:46 ` Esben Haabendal
2010-07-23 17:12 ` Khem Raj
2010-07-23 10:17 ` Phil Blundell
2010-07-23 10:56 ` Richard Purdie [this message]
2010-07-23 17:28 ` Richard Purdie
2010-07-23 17:14 ` Khem Raj
2010-07-23 8:18 ` Martin Jansa
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=1279882577.13006.40.camel@rex \
--to=rpurdie@rpsys.net \
--cc=openembedded-devel@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 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.