From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gate.crashing.org ([63.228.1.57] ident=[U2FsdGVkX1+tClu09AiGMoSDNgNOjTfTFruAGK087G4=]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1QljXJ-0007Jh-Kp for openembedded-core@lists.openembedded.org; Tue, 26 Jul 2011 17:27:10 +0200 Received: from [IPv6:::1] (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.13.8) with ESMTP id p6QFMtc2011597 for ; Tue, 26 Jul 2011 10:22:55 -0500 Mime-Version: 1.0 (Apple Message framework v1084) From: Kumar Gala In-Reply-To: <1311688752.2344.238.camel@rex> Date: Tue, 26 Jul 2011 10:22:57 -0500 Message-Id: <627CF4AB-F07D-4285-B31C-3C5631270420@kernel.crashing.org> References: <346abefc87d21d0cc111ef87a6e48f40c5b6cb0b.1311683981.git.richard.purdie@linuxfoundation.org> <992efbf4ec3d7c55346953dbe82f9745590e64bf.1311683981.git.richard.purdie@linuxfoundation.org> <969FA904-0086-42FA-B605-07B74FB728B4@kernel.crashing.org> <1311688752.2344.238.camel@rex> To: Patches and discussions about the oe-core layer X-Mailer: Apple Mail (2.1084) Subject: Re: [PATCH 3/3] Add basic PowerPC core tune config 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: Tue, 26 Jul 2011 15:27:10 -0000 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable On Jul 26, 2011, at 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: >>=20 >>> Signed-off-by: Richard Purdie >>> --- >>> 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(-) >>=20 >> 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. >=20 > 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. Hmm, gcc still supports this: http://gcc.gnu.org/install/configure.html --with-cpu=3Dcpu --with-cpu-32=3Dcpu --with-cpu-64=3Dcpu Specify which cpu variant the compiler should generate code for by = default. cpu will be used as the default value of the -mcpu=3D switch. = This option is only supported on some targets, including ARM, i386, = M68k, PowerPC, and SPARC. The --with-cpu-32 and --with-cpu-64 options = specify separate default CPUs for 32-bit and 64-bit modes; these options = are only supported for i386, x86-64 and PowerPC.=20 http://gcc.gnu.org/install/specific.html powerpc-*-* You can specify a default version for the -mcpu=3Dcpu_type switch by = using the configure option --with-cpu-cpu_type. > You're already found the way to pass configuration to *libc using = values > in TARGET_FPU to pickup the right configuration. >=20 > Is there a use case we're missing? Yes, for [e]glibc we have optimized libc functions for a given / = specific PPC processor. So we need someway to tell configure this. - k=