From: Dan Dickey <ddickey@charter.net>
To: "linuxppc-embedded@lists.linuxppc.org"
<linuxppc-embedded@lists.linuxppc.org>,
Linux PPC Dev <linuxppc-dev@lists.linuxppc.org>
Subject: My cookbook approach to building a cross compiler for the powerpc on an intel x86 Linux box
Date: Sun, 09 Jan 2000 20:23:04 -0600 [thread overview]
Message-ID: <38794288.3E28E453@charter.net> (raw)
Ok; I originally wrote this in HTML - but the list doesn't accept
attachments. So, here is how it looks as text; sorry for the
poor formatting. Consider it a work in progress. :)
-Dan
Other documents referenced:
* http://members.home.com/mmporter/linux/cross/ (less useful)
* http://www.objsw.com/CrossGCC/ (more useful)
------------------------------------------------------------------------
Binutils
Originally retrieved from ftp.cygnus.com - but that seems to be a fairly
"old"
version in terms of the PowerPC world. Downloaded binutils-2.9.1.0.19a
from
ftp://ftp.cdrom.com/pub/linux/tsx-11/packages/GCC/binutils-2.9.1.0.19a.tar.gz
and built and installed it. Went on to GCC-2.95.2; but it insists that
a
newer
version of binutils is needed. Referred to binutils-2.9.4.0.8 or newer.
Downloaded
ftp://ftp.varesearch.com/pub/support/hjl/binutils/binutils-2.9.5.0.22.tar.bz2
and will build and install it.
$ cd /usr/local/src
$ bunzip2 -c binutils-2.9.5.0.22.tar.bz2 | tar xf -
$ cd /usr/local/ppc
$ mkdir build-binutils-2.9.5.0.22
$ cd build-binutils-2.9.5.0.22
$ ../../src/binutils-2.9.5.0.22/configure --target=powerpc-eabi
--prefix=/usr/local/ppc -v
$ make all
$ make install
------------------------------------------------------------------------
Newlib - part 1
$ cd /usr/local/src
$ tar zxf newlib-1.8.2.tar.gz
------------------------------------------------------------------------
GCC
Using the latest version of egcs (now GCC) - version 2.95.2 as retrieved
using
anonymous cvs.
$ PATH=$PATH:/usr/local/ppc/bin
$ export CVSROOT=:pserver:anoncvs@anoncvs.cygnus.com:/cvs/gcc
$ cvs login
(Logging in to anoncvs@anoncvs.cygnus.com)
CVS password: anoncvs
$ cd /usr/local/src
$ cvs -z 9 co -rgcc-2_95-branch egcs
$ cd egcs
$ ln -s ../newlib-1.8.2/newlib .
$ ln -s ../newlib-1.8.2/libgloss .
$ cd /usr/local/ppc
$ mkdir build-gcc-2.95.2
$ cd build-gcc-2.95.2
$ ../../src/egcs/configure --target=powerpc-eabi --with-cpu=860 \
--with-newlib --enable-languages=c++ --prefix=/usr/local/ppc -v
$ make all
$ make install
------------------------------------------------------------------------
Newlib - part 2
$ cd /usr/local/ppc
$ mkdir build-newlib-1.8.2
$ cd build-newlib-1.8.2
$ ../../src/newlib-1.8.2/configure --target=powerpc-eabi
--prefix=/usr/local/ppc -v
$ make all
$ make install
------------------------------------------------------------------------
Glibc
------------------------------------------------------------------------
Bootloader
------------------------------------------------------------------------
Kernel
------------------------------------------------------------------------
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next reply other threads:[~2000-01-10 2:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-10 2:23 Dan Dickey [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-01-10 5:23 My cookbook approach to building a cross compiler for the powerpc on an intel x86 Linux box Grant Erickson
2000-01-12 3:05 ` Dan Dickey
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=38794288.3E28E453@charter.net \
--to=ddickey@charter.net \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=linuxppc-embedded@lists.linuxppc.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.