CrossTools027

Using Crosstool for Building linux-sh toolchain.

Abstract

This document wishs to give the reader a roadmap for using crosstool informations for building the toolchain for Renesas sh4 microprocessors. This document is supplied AS IS, without any warrenty for the direct or indirect damages caused by using the informations found inside it. Any change is appreciated if it get a patch for any eventual mistake included in this document

Getting the stuff for work

I'll try to give a step by step procedure for getting all the stuff.

  1. Connect to the web site [WWW] http://www.kegel.com/crosstool/

  2. Click on Download Hyperlink

  3. Download [WWW] http://kegel.com/crosstool/crosstool-0.27.tar.gz and store it in /tmp dir

Build the directory tree

  1. Choose your root source directory and you installation direcotry; we say it: your-root-dir; your-target-dir

    • $export CT_ROOTDIR=your-root-dir

    • $export CT_TARGETDIR=your-target-dir

  2. Set the source directory and the target directory for compilation of the sources

    • $cd $CT_ROOT

    • $cp /tmp/crosstool-0.27.tar.gz ./

    • $tar -zxf crosstool-0.27.tar.gz

    • $cd crosstool-0.27

Modify the script for compiling for sh4

  1. Edit file demo.sh

  2. Leave unchanged the first 3 lines

  3. find the section SH-4

  4. leave uncommented only the line: eval cat sh4.dat gcc-3.3.2-glibc-2.3.2.dat sh all.sh --notest

  5. comment all the remaining stuff.

Execution of demo.sh

  1. Execute the script demo.sh

    • make the demo.sh file executable

    • $./demo.sh

  2. wait for the building process

Result bins and libs

To use the new toolchain you can access the directory result/sh4-unknown-linux-gnu/gcc-3.3.2-glibc-2.3.2. This is the base directory of the entire toolchain and glibc. Good work

Date: 2004 / 10 / 15 Author:

last edited 2004-11-21 00:25:43 by