summaryrefslogtreecommitdiff
path: root/README
blob: 71da2aa90c879a8dfadb0519cb2f10873837dc0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Pre-requisites
==============

ARM toolchain
-------------

The ARM development toolchain is based on the CodeSourcery version of GCC. This
document is based on the hard floating point 2009q3 1.0.18-4 release from the
scratchbox project, available from

http://scratchbox.org/download/files/sbox-releases/hathor/tarball/scratchbox-toolchain-cs2009q3-eglibc2.10-armv7-hard-1.0.18-4-i386.tar.gz

Other versions should work as well.

Hard floating point is not a requirement but provides better floating point
performances. Mixing soft floating point and hard floating point applications
and libraries is *not* supported. Compiling the whole system with the same
compiler is thus highly advisable.

To install the toolchain, extract the tarball (this document assumes that the
tarball will be extracted to /opt, but any location can be used) and add the
compiler bin directory to the PATH environment variable. This can be automated
by adding

export PATH=/opt/scratchbox/compilers/cs2009q3-eglibc2.10-armv7-hard/bin:$PATH

to ~/.bashrc (when using the bash shell).

Compilation
===========

To compile the ARM software, run

make KDIR=/path/to/kernel/sources CROSS_COMPILE=arm-none-linux-gnueabi-

This will create the ts binary for ARM.