summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2017-03-17 13:41:26 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2017-03-20 17:03:58 +0000
commit7195781a84ee3906dd0bfea71d2fea8dfb484ef0 (patch)
tree3f552a87c740f7e268e6282d3cb2ff4f88cea527
parent9a02b55c8fff94fbcbcc1b0daab1f8bd1ab0da25 (diff)
MakeRelease.job: Add --canadian option.
And no longer rely on an environment variable. Change-Id: I7f1c64e8632346e82a17e6ded8a5dbe588301b00
-rwxr-xr-xMakeRelease.job5
1 files changed, 4 insertions, 1 deletions
diff --git a/MakeRelease.job b/MakeRelease.job
index ff82c6ac..1735e102 100755
--- a/MakeRelease.job
+++ b/MakeRelease.job
@@ -20,6 +20,7 @@ usage() {
echo " --binutils XXX - Specify Binutils version to build"
echo " --binariesdir XXX - Specify where to upload the generated binaries"
echo " --logsdir XXX - Specify where to upload the logs"
+ echo " --canadian - Perform a Canadian-cross build too"
echo " --help"
exit $ret
}
@@ -44,8 +45,9 @@ user_workspace="${WORKSPACE:-/home/${USER:-buildslave}/workspace}"
abe_dir=
binariesdir=
logsdir=
+canadian=false
-OPTS="`getopt -o h -l target:,date:,fileserver:,workspace:,toolchainconfig:,manifest:,glibc:,gcc:,binutils:,help,abedir:,binariesdir:,logsdir:`"
+OPTS="`getopt -o h -l target:,date:,fileserver:,workspace:,toolchainconfig:,manifest:,glibc:,gcc:,binutils:,help,abedir:,binariesdir:,logsdir:,canadian`"
while test $# -gt 0; do
case $1 in
--abedir) abe_dir=$2 ; shift ;;
@@ -60,6 +62,7 @@ while test $# -gt 0; do
--binutils) binutils_src=$2 ; shift ;;
--binariesdir) binariesdir=$2 ; shift ;;
--logsdir) logsdir=$2 ; shift ;;
+ --canadian) canadian=true ;;
-h|--help) usage 0 ;;
--) break ;;
*) usage ;;