===========================================
Installing the Cross-compiler from ELDK 4.2
===========================================

.. include:: header.rst

.. contents:: Contents

ELDK 4.2 Instructions
---------------------

#. Download ppc-2008-04-01_amcc.iso (from http://ftp.denx.de/pub/eldk/
   or find a mirror at
   http://www.denx.de/wiki/view/DULG/ELDKAvailability).

#. Mount the ISO image to /mnt/tmp (alternatively: you could burn the
   ISO image to a CD and then insert the CD)::

    mount -o loop,ro ppc-2008-04-01_amcc.iso /mnt/tmp

#. Install ELDK::

    cd /mnt/tmp
    ./install -d /home/xilinx/eldk-4.2
    # then answer "y" to the question about installing
    # into /home/xilinx/eldk-4.2

#. To use ELDK, you'll need to setup your environment variables::

    export ARCH=powerpc
    export CROSS_COMPILE=ppc_4xx-
    export PATH=/home/xilinx/eldk-4.2/usr/bin:$PATH

#. ...and that's about it.  Easy!
