[Minor] Moved variables to top of script
This commit is contained in:
parent
56e96f07f4
commit
c0df710d33
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue