welcome to www.hangar-eleven.de - your premier resource for console development





Development Env

Installing Cygwin

Building SH4 toolchain
Making Binutils
Making crossGCC
Making Newlib
Making final crossGCC

Building ARM toolchain
Making Binutils
Making crossGCC

Compiling KallistiOS

Testing KOS and the Compilers
Writing the first program
Compiling the first program
Uploading to the Dreamcast
DC-Tool
Serial Slave

Making a CD

Back to News

 

  Compiling BINUTILS for SH4 Platform
  Written: February 1st, 2002 @ 19:39 GMT By: Thorsten Titze
 
 

We will start by making the binutils-package (this includes assembler, linkers and some additional tools) for the SH4-processor (the Dreamcast main processor). Just follow this small step-by-step tutorial and everything should work out !

  • Set the needed environment variables in your shell with the following commands:

    target=sh-elf
    prefix=/usr/local/dc/$target
    binaries=$prefix/bin
    PATH=$binaries:$PATH

  • Change to your BUILD-BINUTILS directory

    cd /gcc/build-binutils

  • Configure your makefile so that it reflects your TARGET and DIRECTORIES

    ../binutils-2.11.2/configure --target=$target --prefix=$prefix

    (this step may take quite some time, so enjoy the nice printouts and take a cup of coffee....... or two...)

  • Start the make-procedure including install

    make all install

    (as with the step above this may take some time... even some more than configuring)

  • Also to be able to use the binutils and compilers we have to add the directory to our path in either .profile or .bashrc add the following line: (this line puts both the binutils and gcc into your path)

    PATH=/usr/local/dc/sh-elf/bin:$PATH

    NOTE: If you used an other path in prefix. Please add your own path to your .bashrc or .profile !

Now you have your SH4-BINUTILS sitting in /usr/local/dc/sh-elf/bin (or any other path you defined in $prefix) . And are ready to comile the remaining parts of the toolchain.

 

  Go to the sourceforge homepage of KallistiOS

Back to Dreamcast Development Main


DISCLAIMERS:
Website Design © 2002 by Thorsten Titze / hangar-eleven.de
(the pictures used for the design were taken from a WindowsXP Skin and WindowsXP)
All brand names used on this site are registered trademarks of their respective owners
No copyright infringement is intended
Last updated @ 22-Feb-2002 2:19 PM Contact me via eMail