linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "David H. Lynch Jr." <dhlii@dlasys.net>
To: rodolfo <rodolfo@lesc.ufc.br>
Cc: linuxppc-embedded@ozlabs.org, John Linn <John.Linn@xilinx.com>,
	Mirek23 <miroslaw.dach@psi.ch>
Subject: Re: Cross toolchain for ppc405 (virtex-4)
Date: Thu, 29 May 2008 02:40:23 -0400	[thread overview]
Message-ID: <483E4FD7.3050401@dlasys.net> (raw)
In-Reply-To: <635aaa73efeab32f524e372289dc2a9f@lesc.ufc.br>

I am not sure if this answers your question but to build a 2.6 Linux
kernel using the buildroot uclibc ppc cross compiler you would issue the
following make command

make ARCH=ppc CROSS_COMPILE=powerpc-linux-uclibc-

If you were using the crosstools compiler rather than buildroot, the
CROSS_COMPILE value would change.
For older version of GCC it might require a full path to the crosscompiler.

If you are building a BSP in the powerpc tree use ARCH=powerpc

I am fairly certain that when you are building a Linux kernel it is
irrelevant whether you use a glibc or uclibc or ... compiler.
The kernel is not going to link against any standard C library, those
library functions the kernel uses must be coded in the kernel.

However, when you are cross compiling applications for your target it is
a good idea to stick to the same standard C library and associated cross
compiler.

rodolfo wrote:
> I'm sorry.
>
> I want build kernel linux 2.6 for ml403. 
> Did I have to change the predefined compiler flags for ppc_4xx? The default
> value is -mcpu=403.
>
> On Wed, 28 May 2008 13:32:51 -0600, "John Linn" <John.Linn@xilinx.com>
> wrote:
>   
>> I don't know, I'm not familiar with what you are doing and it's not clear
>> from the message.
>>  
>> -- John
>>     
-- 
Dave Lynch 					  	    DLA Systems
Software Development:  				         Embedded Linux
717.627.3770 	       dhlii@dlasys.net 	  http://www.dlasys.net
fax: 1.253.369.9244 			           Cell: 1.717.587.7774
Over 25 years' experience in platforms, languages, and technologies too numerous to list.

"Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction."
Albert Einstein

  reply	other threads:[~2008-05-29  6:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-28 15:54 Cross toolchain for ppc405 (virtex-4) Mirek23
2008-05-28 17:16 ` John Linn
2008-05-28 18:05   ` rodolfo
2008-05-28 19:32     ` John Linn
2008-05-28 19:59       ` rodolfo
2008-05-29  6:40         ` David H. Lynch Jr. [this message]
2008-05-29 11:29   ` Detlev Zundel

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=483E4FD7.3050401@dlasys.net \
    --to=dhlii@dlasys.net \
    --cc=John.Linn@xilinx.com \
    --cc=linuxppc-embedded@ozlabs.org \
    --cc=miroslaw.dach@psi.ch \
    --cc=rodolfo@lesc.ufc.br \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).