XTOOLS: Improve building
[yari.git] / xtools / BUILD-config
blobed7bbcaf06276afcb0b9f2bad9f04dc524fd4b45
1 # setup some configuration variables
2 builddir=$YARI_XTOOLS_BUILDDIR
3 srcroot=$PWD
4 target=$YARI_XTOOLS_TARGET
5 install_prefix=$YARI_XTOOLS_INSTALL_PREFIX
6 make_option=$YARI_XTOOLS_MAKE_OPTION
7 # enable this if you install into a directory that you don't own
8 sudo=$YARI_XTOOLS_SUDO
11 GNUsrc=~/Downloads/FSF  #$PWD
12 gccdist=gcc-4.2.3
13 binutilsdist=binutils-2.18
14 newlibdist=newlib-1.16.0
16 download () {
17     location=$1
18     object=$2
20     if [ ! -f $GNUsrc/$object ]; then
21         wget -O $GNUsrc/$object $location/$object
22     else
23         echo "already have cached version of $object"
24     fi