[Minor] Moved variables to top of script

This commit is contained in:
Robert von Burg 2020-03-03 10:48:20 +01:00
parent 56e96f07f4
commit c0df710d33
1 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,9 @@
#!/bin/bash -e
export JOBS=6
export BIN_UTILS="binutils-2.32"
export GCC="gcc-9.1.0"
SOURCEDIR="$(cd ${0%/*} ; pwd)"
ROOTDIR="$1"
if ! [[ -d ${ROOTDIR} ]] ; then
@ -18,10 +22,6 @@ cd ${ROOTDIR}
ROOTDIR=$(pwd)
echo "INFO: root dir is ${ROOTDIR}"
export JOBS=6
export BIN_UTILS="binutils-2.32"
export GCC="gcc-9.1.0"
export TOOLCHAIN="${SOURCEDIR}/toolchains/aarch64"
if ! [[ -d ${TOOLCHAIN} ]] ; then
echo "INFO: Creating toolchain directory at ${TOOLCHAIN}"