#!/bin/sh
set -ex
TARBALLS_DIR=$HOME/crosstool
RESULT_TOP=/scratchbox/compilers/arm-linux-iliad
export TARBALLS_DIR RESULT_TOP
GCC_LANGUAGES="c,c++"
export GCC_LANGUAGES

# Really, you should do the mkdir before running this,
# and chown /opt/crosstool to yourself so you don't need to run as root.
mkdir -p $RESULT_TOP

# Build the toolchain.  Takes a couple hours and a couple gigabytes.

eval `cat arm.dat gcc-3.4.2-glibc-2.3.3.dat` LINUX_DIR=linux-2.4.19 sh all.sh --notest

echo Done.
