Received: from gate.crashing.org ([63.228.1.57]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1QrF7E-0006qc-3v for openembedded-core@lists.openembedded.org; Wed, 10 Aug 2011 22:11: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 p7AK6RJw013622 for ; Wed, 10 Aug 2011 15:06:27 -0500 Mime-Version: 1.0 (Apple Message framework v1084) From: Kumar Gala In-Reply-To: <4E42D9B5.3000906@windriver.com> Date: Wed, 10 Aug 2011 15:06:27 -0500 Message-Id: References: <1312996425-4319-1-git-send-email-galak@kernel.crashing.org> <4E42D9B5.3000906@windriver.com> To: Patches and discussions about the oe-core layer X-Mailer: Apple Mail (2.1084) Subject: Re: [PATCH v2] tune-ppc: Update to pass glibc configure option to get cpu specific support 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: Wed, 10 Aug 2011 20:11:00 -0000 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Why? - k On Aug 10, 2011, at 2:19 PM, Mark Hatle wrote: > I don't think the patch is correct. If these tune files are included, = the > GLIBC_EXTRA_OECONF is set unconditionally. It is possible to include = the tune > files, but not actually use the tunings. (There are cases where you = might want > to inherit specific tunings, etc.) >=20 > Instead, I'd suggest you do: >=20 > GLIBC_EXTRA_OECONF +=3D "${@bb.utils.contains("TUNE_FEATURES", = "ppc603e", > "--with-cpu=3D603e", "", d)}" >=20 > (and a similar line for the e500mc) >=20 > --Mark >=20 > On 8/10/11 12:13 PM, Kumar Gala wrote: >> We need --with-cpu based to glibc to get proper support on 603e & = e500mc >> to pickup proper math libs to deal with sqrt. These core do not >> implement the fsqrt[s] instructions that the normal PPC math libs >> utilize. >>=20 >> This causes use to not set AVAILTUNES specifically to the sub-arch = only >> as we arent generically compatiable. >>=20 >> Signed-off-by: Kumar Gala >> --- >> meta/conf/machine/include/tune-ppc603e.inc | 5 ++++- >> meta/conf/machine/include/tune-ppce500mc.inc | 5 ++++- >> 2 files changed, 8 insertions(+), 2 deletions(-) >>=20 >> diff --git a/meta/conf/machine/include/tune-ppc603e.inc = b/meta/conf/machine/include/tune-ppc603e.inc >> index 9abb694..c673470 100644 >> --- a/meta/conf/machine/include/tune-ppc603e.inc >> +++ b/meta/conf/machine/include/tune-ppc603e.inc >> @@ -6,6 +6,9 @@ TUNEVALID[ppc603e] =3D "Enable ppc603e specific = processor optimizations" >> TUNE_CCARGS +=3D "${@bb.utils.contains("TUNE_FEATURES", "ppc603e", = "-mcpu=3D603e", "", d)}" >> TUNE_PKGARCH =3D "${@bb.utils.contains('TUNE_FEATURES', 'ppc603e', = 'ppc603e', '${PPCPKGARCH}', d)}" >>=20 >> -AVAILTUNES +=3D "ppc603e" >> +AVAILTUNES =3D "ppc603e" >> TUNE_FEATURES_tune-ppc603e =3D "m32 ppc603e" >> PACKAGE_EXTRA_ARCHS_tune-ppc603e =3D "powerpc ppc603e" >> + >> +# glibc configure options to get 603e specific library (for sqrt) >> +GLIBC_EXTRA_OECONF +=3D "--with-cpu=3D603e" >> diff --git a/meta/conf/machine/include/tune-ppce500mc.inc = b/meta/conf/machine/include/tune-ppce500mc.inc >> index b5031f4..cdd87dc 100644 >> --- a/meta/conf/machine/include/tune-ppce500mc.inc >> +++ b/meta/conf/machine/include/tune-ppce500mc.inc >> @@ -6,6 +6,9 @@ TUNEVALID[ppce500mc] =3D "Enable ppce500mc specific = processor optimizations" >> TUNE_CCARGS +=3D "${@bb.utils.contains("TUNE_FEATURES", "ppce500mc", = "-mcpu=3De500mc", "", d)}" >> TUNE_PKGARCH =3D "${@bb.utils.contains("TUNE_FEATURES", "ppce500mc", = "ppce500mc", "${PPCPKGARCH}", d)}" >>=20 >> -AVAILTUNES +=3D "ppce500mc" >> +AVAILTUNES =3D "ppce500mc" >> TUNE_FEATURES_tune-ppce500mc =3D "m32 ppce500mc" >> PACKAGE_EXTRA_ARCHS_tune-ppce500mc =3D "powerpc ppce500mc" >> + >> +# glibc configure options to get e500mc specific library (for sqrt) >> +GLIBC_EXTRA_OECONF +=3D "--with-cpu=3De500mc" >=20 >=20 > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core