#!/bin/sh
set -ex
#TARBALLS_DIR=$HOME/downloads
TARBALLS_DIR=`pwd`/source

#RESULT_TOP=/opt/crosstool
RESULT_TOP=/usr/local/
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.

# gcc-3.3 doesn't support this, need gcc-3.4
eval `cat arm-iwmmxt.dat gcc-3.4.3-glibc-2.3.2.dat` sh all.sh --notest
#eval `cat arm-iwmmxt.dat gcc-3.4.3-glibc-2.3.2.dat` sh all.sh --nounpack

echo Done.
