From: Matthias Rampke Date: Fri, 12 Aug 2011 13:11:25 +0000 (+0200) Subject: allow setting work dir and prefix in the environment X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=summon-arm-toolchain.git;a=commitdiff_plain;h=83927de4958dc02ec0c7d8dddd151328b6a16613 allow setting work dir and prefix in the environment --- diff --git a/summon-arm-toolchain b/summon-arm-toolchain index 7cb10a5..7665da6 100755 --- a/summon-arm-toolchain +++ b/summon-arm-toolchain @@ -14,7 +14,8 @@ set -e # You probably want to customize those ############################################################################## TARGET=arm-eabi # Or: TARGET=arm-elf -PREFIX=${HOME}/arm # Install location of your final toolchain +[ -z $PREFIX ] && PREFIX=${HOME}/arm # Install location of your final toolchain +[ -z $WORKDIR ] && WORKDIR=$PREFIX/work #temporary directory PARALLEL= # Or: PARALLEL="-j 5" for 4 CPUs # Set to 'sudo' if you need superuser privileges while installing SUDO=''