Received: from gate.crashing.org ([63.228.1.57] ident=[U2FsdGVkX1+kjVK/P/jucyOyDxlQKiDvuMB1DVYBPoQ=]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1QqSDI-0000Ao-C3 for openembedded-core@lists.openembedded.org; Mon, 08 Aug 2011 17:58:00 +0200 Received: from [IPv6:::1] (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.13.8) with ESMTP id p78FrTU6013091 for ; Mon, 8 Aug 2011 10:53:32 -0500 Mime-Version: 1.0 (Apple Message framework v1084) From: Kumar Gala In-Reply-To: <1312814889.14274.206.camel@rex> Date: Mon, 8 Aug 2011 10:53:29 -0500 Message-Id: <507E6F90-7761-4973-B4D0-EFC15FB21CF1@kernel.crashing.org> References: <1312575061-27569-1-git-send-email-galak@kernel.crashing.org> <6CFB9718-52F9-45F5-B157-B0410A70DA08@kernel.crashing.org> <1312814889.14274.206.camel@rex> To: Patches and discussions about the oe-core layer X-Mailer: Apple Mail (2.1084) Subject: Re: [PATCH] tune-ppce5500: Add a tune file for PowerPC e5500 core X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Aug 2011 15:58:00 -0000 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable On Aug 8, 2011, at 9:48 AM, Richard Purdie wrote: > On Mon, 2011-08-08 at 09:39 -0500, Kumar Gala wrote: >> On Aug 5, 2011, at 3:11 PM, Kumar Gala wrote: >>=20 >>> Signed-off-by: Kumar Gala >>> --- >>> 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 >>>=20 >>> 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 ?=3D "ppce5500" >>> + >>> +require conf/machine/include/powerpc/arch-powerpc64.inc >>> + >>> +TUNEVALID[ppce5500] =3D "Enable ppce5500 specific processor = optimizations" >>> +TUNE_CCARGS +=3D "${@bb.utils.contains("TUNE_FEATURES", "ppce5500", = "-mcpu=3De5500", "", d)}" >>> +TUNE_PKGARCH =3D "${@bb.utils.contains("TUNE_FEATURES", "ppce5500", = "ppce5500", "${PPCPKGARCH}", d)}" >>> + >>> +AVAILTUNES +=3D "ppce5500" >>> +TUNE_FEATURES_tune-ppce5500 =3D "m64 ppce5500" >>> +PACKAGE_EXTRA_ARCHS_tune-ppce5500 =3D "powerpc64 ppce5500" >>> + >>> +# glibc configure options to get e5500 specific library (for sqrt) >>> +GLIBC_EXTRA_OECONF +=3D "--with-cpu=3De5500" >>> --=20 >>> 1.7.3.4 >>=20 >> 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? >=20 > I was wondering about this. You really need to make it conditional on > something, e.g. >=20 > GLIBC_EXTRA_OECONF +=3D "${@bb.utils.contains("TUNE_FEATURES", "m32", = ""--with-cpu=3De5500", "", d)}" Sorry, I meant for the whole file, not just the GLIBC_EXTRA_OECONF (That = has to be done regardless of 32-bit or 64-bit). > 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. Which it is, or do you mean being more explicit about it via: TUNE_PKGARCH =3D "ppce5500" rather than: TUNE_PKGARCH =3D "${@bb.utils.contains("TUNE_FEATURES", "ppce5500", = "ppce5500", "${PPCPKGARCH}", d)}" - k=