[OE-core] [PATCH 3/3] Add basic PowerPC core tune config

Mark Hatle mark.hatle at windriver.com
Tue Jul 26 14:59:52 UTC 2011


On 7/26/11 8:59 AM, Richard Purdie wrote:
> On Tue, 2011-07-26 at 08:47 -0500, Kumar Gala wrote:
>> On Jul 26, 2011, at 7:44 AM, Richard Purdie wrote:
>>
>>> Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
>>> ---
>>> meta/conf/machine/include/powerpc/arch-powerpc.inc |   45 +++++++++++++++++++-
>>> meta/conf/machine/include/tune-ppc603e.inc         |   12 ++++-
>>> meta/conf/machine/include/tune-ppce300c2.inc       |   12 ++++-
>>> meta/conf/machine/include/tune-ppce500.inc         |   13 ++++--
>>> meta/conf/machine/include/tune-ppce500mc.inc       |   12 ++++-
>>> meta/conf/machine/include/tune-ppce500v2.inc       |   12 ++++-
>>> 6 files changed, 88 insertions(+), 18 deletions(-)
>>
>> One thing I'm wondering about as we do this is the ability to pass
>> --with-cpu to gcc & [e]glibc configure to pickup proper optimized cfgs
>> & libs for a given target.
> 
> As far as I can tell, gcc 4.x has no --with-cpu option. We pass the
> correct march and mtune options to the compiler at runtime through
> CFLAGS and friends.
> 
> You're already found the way to pass configuration to *libc using values
> in TARGET_FPU to pickup the right configuration.
> 
> Is there a use case we're missing?

glibc is capable of some processor specific optimizations.  So you can say I
want e500 or ppc603e or... as it's base configuration.  This is useful on MIPS
as well.

My suggestion would be to use the TUNE_FEATURES in eglibc to figure out what
option(s) we want to pass to glibc.  (We could also use the tune name, but I'd
be afraid that the names could change arbitrarily over time..  the tune_features
I would expect to have a longer life span.)

--Mark

> Cheers,
> 
> Richard
> 
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core





More information about the Openembedded-core mailing list