cookutils rev 412
We need logdir set for log path
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 14 12:12:01 2012 +0200 (2012-05-14) |
parents | 6b8f13182be3 |
children | 0951a386e1e6 |
files | cross |
line diff
1.1 --- a/cross Mon May 14 11:43:19 2012 +0200 1.2 +++ b/cross Mon May 14 12:12:01 2012 +0200 1.3 @@ -12,6 +12,9 @@ 1.4 1.5 # Handle --config=/path/to/cross.conf 1.6 [ "$config" ] && . $config 1.7 +source=$WORK/source 1.8 +logdir=$WORK/log 1.9 +install=$WORK/install 1.10 1.11 # Help and usage. 1.12 usage() { 1.13 @@ -44,9 +47,6 @@ 1.14 export LC_ALL=POSIX LANG=POSIX 1.15 [ "$SYSROOT" ] || export PATH=$PATH:$PREFIX/bin 1.16 export CROSS_COMPILE=${TARGET}- 1.17 - source=$WORK/source 1.18 - logdir=$WORK/log 1.19 - #install=$WORK/install 1.20 mkdir -p $source $logdir $install 1.21 cd $source 1.22 } 1.23 @@ -81,6 +81,7 @@ 1.24 tar xjf $SRC/binutils-$BINUTILS_VERSION.tar.bz2 1.25 : ${BINUTILS_ARGS=--enable-shared} 1.26 echo "Configure : $BINUTILS_ARGS" 1.27 + exit 1 1.28 check_sysroot 1.29 cd binutils-$BINUTILS_VERSION 1.30 ./configure \ 1.31 @@ -90,7 +91,7 @@ 1.32 $BINUTILS_ARGS $sysroot 1.33 make || exit 1 1.34 make install 1.35 - echo "cross: binutils compiled on: $(date)" 1.36 + #echo "cross: binutils compiled on: $(date)" 1.37 } 1.38 1.39 # 2. GCC static (first pass) 1.40 @@ -293,6 +294,7 @@ 1.41 fi 1.42 less -E $log ;; 1.43 binutils) 1.44 + rm -f $logdir/binutils.log 1.45 binutils 2>&1 | tee $logdir/binutils.log ;; 1.46 gcc-static) 1.47 gcc_static 2>&1 | tee $logdir/gcc-static.log ;;