#!/bin/sh

NO_ARCH=none
source include.sh

# Dark blue
echo -e "\e[34m"

# Download everything we haven't already got a copy of.

echo "=== Download source code." &&

# Required for cross compile toolchain

URL=http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.19.1.tar.bz2 \
SHA1=a373be93fcb55b97a5b96a422f690edafeff1de4 \
download &&

URL=http://www.uclibc.org/downloads/snapshots/uClibc-20061214.tar.bz2 \
SHA1= \
download &&

URL=ftp://ftp.gnu.org/gnu/binutils/binutils-2.17.tar.bz2 \
SHA1=a557686eef68362ea31a3aa41ce274e3eeae1ef0 \
download &&

URL=ftp://ftp.gnu.org/gnu/gcc/gcc-4.1.1/gcc-core-4.1.1.tar.bz2 \
SHA1=147e12bf96a8d857fda1d43f0d7ea599b89cebf9 \
download &&

# Ye olde emulator

URL=http://qemu.org/qemu-0.8.2.tar.gz \
SHA1=d775239a545e7d0c5b677660a2122df590afde6d \
download &&

# Required for native build environment

URL=http://ftp.gnu.org/gnu/gcc/gcc-4.1.1/gcc-g++-4.1.1.tar.bz2 \
SHA1=909672543af9a7b88898cd256e25ccd4a9f009b1 &&
download &&

URL=http://superb-east.dl.sourceforge.net/sourceforge/squashfs/squashfs3.1.tar.gz \
SHA1=89d537fd18190402ff226ff885ddbc14f6227a9b \
download &&

URL=http://www.busybox.net/downloads/busybox-1.2.2.tar.bz2 \
SHA1=59670600121c9dacfd61e72e34f4bd975ec2c36f \
download &&

URL=ftp://ftp.gnu.org/gnu/make/make-3.81.tar.bz2 \
SHA1=41ed86d941b9c8025aee45db56c0283169dcab3d \
download &&

URL=http://ftp.gnu.org/gnu/bash/bash-2.05b.tar.gz \
SHA1=b3e158877f94e66ec1c8ef604e994851ee388b09 \
download &&

URL=http://superb-east.dl.sourceforge.net/sourceforge/strace/strace-4.5.14.tar.bz2 \
SHA1= \
download &&


echo === Got all source. &&

cleanup_oldfiles

# Set color back to normal.
echo -e "\e[0m"
