next up previous contents index
Next: Downloading the source packages Up: Setting up an initial Previous: Setting up your workstation   Contents   Index


Setting up a cross compiling environment

You'll need up to twelve packages plus some build directories. So, I suggest creating a special directory to collect all needed packages and seperate them from the rest of your system:

christian@helicon:~$ mkdir -p Dreamcast/toolchain

This is just a proposal. You may install your toolchain in /usr/local, but according to my experience it's better to seperate the additional software for your workstation located in /usr/local from the toolchain.

For the future, I omit christian@helicon:~ from my prompt to save space. The next step is to set up some environment variables:

$ export TARGET=sh4-linux
$ export PREFIX=/home/christian/Dreamcast/toolchain
$ export PATH=$PREFIX/bin:$PATH

Note, while you were logging out, your environment settings got lost! But you can create a file named ~/.dcenv for example and let your ~/.bash_profile set your environment if you login:

export TARGET=sh4-linux
export PREFIX=/home/christian/Dreamcast/toolchain
export PATH=$PREFIX/bin:$PATH

In your ~/.bash_profile, you simply add:

  .
  .
  .
  
source ~/.dcenv
 
  .
  .
  .

Now, you're ready to download the initial stuff.



Christian Berger 2004-10-19