From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] tune-ppce5500: Add a tune file for PowerPC e5500 core
Date: Mon, 08 Aug 2011 15:48:09 +0100 [thread overview]
Message-ID: <1312814889.14274.206.camel@rex> (raw)
In-Reply-To: <6CFB9718-52F9-45F5-B157-B0410A70DA08@kernel.crashing.org>
On Mon, 2011-08-08 at 09:39 -0500, Kumar Gala wrote:
> On Aug 5, 2011, at 3:11 PM, Kumar Gala wrote:
>
> > Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
> > ---
> > meta/conf/machine/include/tune-ppce5500.inc | 14 ++++++++++++++
> > 1 files changed, 14 insertions(+), 0 deletions(-)
> > create mode 100644 meta/conf/machine/include/tune-ppce5500.inc
> >
> > diff --git a/meta/conf/machine/include/tune-ppce5500.inc b/meta/conf/machine/include/tune-ppce5500.inc
> > new file mode 100644
> > index 0000000..8e6403d
> > --- /dev/null
> > +++ b/meta/conf/machine/include/tune-ppce5500.inc
> > @@ -0,0 +1,14 @@
> > +DEFAULTTUNE ?= "ppce5500"
> > +
> > +require conf/machine/include/powerpc/arch-powerpc64.inc
> > +
> > +TUNEVALID[ppce5500] = "Enable ppce5500 specific processor optimizations"
> > +TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppce5500", "-mcpu=e5500", "", d)}"
> > +TUNE_PKGARCH = "${@bb.utils.contains("TUNE_FEATURES", "ppce5500", "ppce5500", "${PPCPKGARCH}", d)}"
> > +
> > +AVAILTUNES += "ppce5500"
> > +TUNE_FEATURES_tune-ppce5500 = "m64 ppce5500"
> > +PACKAGE_EXTRA_ARCHS_tune-ppce5500 = "powerpc64 ppce5500"
> > +
> > +# glibc configure options to get e5500 specific library (for sqrt)
> > +GLIBC_EXTRA_OECONF += "--with-cpu=e5500"
> > --
> > 1.7.3.4
>
> If I want to have a version of this for 32-bit only (or default) and one for 64-bit, how would it be best to handle that?
I was wondering about this. You really need to make it conditional on
something, e.g.
GLIBC_EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "m32", ""--with-cpu=e5500", "", d)}"
however, if you do this you need to ensure that TUNE_PKGARCH is not
powerpc but something e5500 specific at this point since you are
enabling e5500 specific optimisations.
Cheers,
Richard
next prev parent reply other threads:[~2011-08-08 14:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-05 20:11 [PATCH] tune-ppce5500: Add a tune file for PowerPC e5500 core Kumar Gala
2011-08-05 21:17 ` Khem Raj
2011-08-06 20:49 ` Kumar Gala
2011-08-08 14:39 ` Kumar Gala
2011-08-08 14:48 ` Richard Purdie [this message]
2011-08-08 15:53 ` Kumar Gala
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=1312814889.14274.206.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 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.