[coreboot] [PATCH] cross compiler

Myles Watson mylesgw at gmail.com
Fri Oct 30 19:15:36 CET 2009

On Fri, Oct 30, 2009 at 9:29 AM, Peter Stuge <peter at stuge.se> wrote:

> Myles Watson wrote:
> > >> That functionality is already there... see util/xcompile.
> > >
> > > So what's the preferred way to invoke it?
> I think Makefile picks it up automatically if there is an .xcompile
> file in the right spot.<http://www.coreboot.org/mailman/listinfo/coreboot>

Thanks.  My problems getting it to work were:

I hadn't realized that the path to crossgcc was hard coded in xcompile, so
xcompile has to be invoked from the right spot:

for gccprefixes in `pwd`/../crossgcc/xgcc/bin/i386-elf- i386-elf- ""; do

I had expected to be able to run xcompile from the top like this:
. ./util/xcompile/xcompile > .xcompile
the way it works is:
cd util/xcompile
. ./xcompile > ../../.xcompile

The other problem I had was that the Makefile removes .xcompile on make
clean, which is not what I wanted.  I'd just generated the .xcompile file,
so I did a make clean to make sure the whole thing was compiled with the
same compiler.

I think it would be better to remove .xcompile with make distclean.  Patch

Signed-off-by: Myles Watson <mylesgw at gmail.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20091030/c6622559/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xcompile.diff
Type: text/x-patch
Size: 850 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20091030/c6622559/attachment.diff>

More information about the coreboot mailing list