From: Stephen Rothwell Date: Sun, 21 Jun 2015 00:07:32 +0000 (+1000) Subject: common.sh: allow gcc_version and j_factor to be set from the environment X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=6cb00e0865ee1e6df6763ba0199ae7ea69a91d57;p=next-scripts common.sh: allow gcc_version and j_factor to be set from the environment --- diff --git a/common.sh b/common.sh index 71f17fb..1c2de5e 100644 --- a/common.sh +++ b/common.sh @@ -21,6 +21,8 @@ gpg_key=41D5C07A [ "$NEXT_BUILD_HOST" ] && build_host="$NEXT_BUILD_HOST" [ "$NEXT_BUILD_DIR" ] && build_dir="$NEXT_BUILD_DIR" +[ "$NEXT_GCC_VERSION" ] && gcc_version="$NEXT_GCC_VERSION" +[ "$NEXT_J_FACTOR" ] && j_factor="$NEXT_J_FACTOR" [ -n "$1" ] && { build_host="$1" @@ -33,5 +35,7 @@ gpg_key=41D5C07A export NEXT_BUILD_HOST="$build_host" export NEXT_BUILD_DIR="$build_dir" +export NEXT_GCC_VERSION="$gcc_version" +export NEXT_J_FACTOR="$j_factor" true