This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: How to configure binutils for "other" architectures etc
- From: Peter Barada <pbarada at mail dot wm dot sps dot mot dot com>
- To: rtrask at earthlink dot net
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 28 Oct 2003 12:25:16 -0500
- Subject: Re: How to configure binutils for "other" architectures etc
- References: <3415450.1067360315774.JavaMail.root@huey.psp.pas.earthlink.net>
>I'm sure this question has been asked before -- surprising there is
>nothing in the manuals, at least where I've looked.
>Background:
>I have a Linux "pc" (Redhat 8.2 on i686) that I want to setup for
>cross development, target = powerpc How do I configure the binutils to
>recognize something other than the native platform formats? Are there
>command line args to the configure script? What are they? Is there a
>summary somewhere?
You can try Dan Kegel's crosstool script, or you can just build your
own.
There are two configure options you'll be interested in:
--prefix=<dirname>
which indicates where to install the tools
--target=<targetdescriptor>
which indicates what target to build for.
Another suggestion is to no build in binutils source directory...
In your case I'll assume you want powerpc for an unadorned
board(i.e. no linux operating system):
mkdir /tmp/binutils-obj
cd /tmp/binutils-obj
/path/to/binutils/source/directory/configure --target=powerpc-eabi --prefix=/tmp/binutils-ppc-eabi
make; make install
--
Peter Barada Peter.Barada@motorola.com
Wizard 781-852-2768 (direct)
WaveMark Solutions(A Motorola Company) 781-270-0193 (fax)