Building the Toolchain
Now you need to compile the tools for your hardware and operating system:
Before attempting to build the tools, ensure that the GNU native compiler tools directory is on the PATH and precedes the current directory.
#
PATH=/bin:$PATH ; export PATHConfigure the GNU binary utilities ( binutils):
#
mkdir -p /tmp/build/binutils#cd /tmp/build/binutils#/src/binutils-2.15/configure --target=arm-elf \\--prefix=/opt/gnutools/arm-elf -v 2>&1 | tee configure.outThe resulting output is contained in the file configure.out. If there are any problems configuring the tools, refer to this file.
Build and install the GNU binutils (this step may take an especially long time):
#
make -w all install 2>&1 | tee make.outThe resulting output is contained in the file make.out. If there are any problems building the tools, refer to this file.
Ensure that the binutils are at the head of the PATH:
#
PATH=/opt/gnutools/arm-elf/bin:$PATH ; export PATHConfigure gcc:
#
mkdir -p /tmp/build/gcc#cd /tmp/build/gcc#/src/gcc-3.4.4/configure --target=arm-elf \\--prefix=/opt/gnutools/arm-elf --enable-languages=c,c++ \\--with-gnu-as --with-gnu-ld --with-newlib \\--with-gxx-include-dir=/opt/gnutools/arm-elf/arm-elf/include \\-v 2>&1 | tee configure.outBuild and install gcc (this step may take an especially long time):
#
make -w all install 2>&1 | tee make.outConfigure gdb:
#
mkdir -p /tmp/build/gdb#cd /tmp/build/gdb#/src/gdb-6.3/configure --target=arm-elf \\--prefix=/opt/gnutools/arm-elf --disable-nls ...