Toolchain: Difference between revisions

From Sharpfin
Jump to navigation Jump to search
(New page: == Download Crosstool == Crosstool is a collection of scripts which can help you building a cross compiler toolchain without pain. Get the latest version from [http://kegel.com/crosst...)
 
No edit summary
Line 1: Line 1:




Line 9: Line 8:
== Build the toolchain ==
== Build the toolchain ==


It seems that reciva uses glibc 2.3.2 and gcc 3.3.4 at this moment. We'll create a toolchain with the same versions:
Reciva uses two different toolchains to build the radio software. gcc 3.3.4 is used for the kernel, and 4.1.0 is used for the userspace applications.
 
We'll create a toolchain with the same versions:


* unpack crosstool:  
* unpack crosstool:  
Line 15: Line 16:
* choose the right flavour and build
* choose the right flavour and build
   export RESULT_TOP=/opt/crosstool
   export RESULT_TOP=/opt/crosstool
   eval `cat arm.dat gcc-3.3.4-glibc-2.3.2.dat` sh all.sh --notest
   eval `cat arm9tdmi.dat gcc-4.1.0-glibc-2.3.2.dat` sh all.sh --notest
  (note, we might needt the arm-softfloat.dat)


This might take some time. If all goes well, you'll and up with a fresh cross complier in
This might take some time. If all goes well, you'll and up with a fresh cross complier in
/opt/crosstool
/opt/crosstool

Revision as of 08:36, 5 September 2007


Download Crosstool

Crosstool is a collection of scripts which can help you building a cross compiler toolchain without pain. Get the latest version from [1]

Build the toolchain

Reciva uses two different toolchains to build the radio software. gcc 3.3.4 is used for the kernel, and 4.1.0 is used for the userspace applications.

We'll create a toolchain with the same versions:

  • unpack crosstool:
 tar -zxvf crosstool-<version>.tgz
  • choose the right flavour and build
 export RESULT_TOP=/opt/crosstool
 eval `cat arm9tdmi.dat gcc-4.1.0-glibc-2.3.2.dat` sh all.sh --notest

This might take some time. If all goes well, you'll and up with a fresh cross complier in /opt/crosstool