diff options
Diffstat (limited to 'tcwg-dev-build.sh')
-rwxr-xr-x | tcwg-dev-build.sh | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tcwg-dev-build.sh b/tcwg-dev-build.sh index 9b295e75..ea2e75e6 100755 --- a/tcwg-dev-build.sh +++ b/tcwg-dev-build.sh @@ -7,14 +7,24 @@ scripts=$(dirname $0) . $scripts/jenkins-helpers.sh convert_args_to_variables "$@" +# By default this script produces an aarch64-linux-gnu toolchain. If we're +# already running on that platform, default to "native" so that this is clear +# for this and other scripts. +if [ "$(uname -s)" = "Linux" ] && [ "$(uname -m)" = "aarch64" ]; then + default_target="native" +else + default_target="aarch64-linux-gnu" +fi + abe_branch="${abe_branch-tested}" dry_run="${dry_run-false}" manifest="${manifest-}" release_name="${release_name-default}" buildnumber="${buildnumber-0}" -target="${target-aarch64-linux-gnu}" +target="${target-$default_target}" version="${version-default}" verbose="${verbose-true}" +check="${check-}" set -u @@ -36,6 +46,11 @@ if [ x"$target" = x"native" ]; then manifest_validation_opt="--manifest_validation false" fi +check_opt=() +if [ -n "$check" ]; then + check_opt=("--check" "$check") +fi + # shellcheck disable=SC2154 $scripts/MakeRelease.job \ --abedir "$(pwd)"/abe \ @@ -47,5 +62,6 @@ $scripts/MakeRelease.job \ --workspace "$(pwd)" \ $manifest_opt \ $manifest_validation_opt \ + "${check_opt[@]}" \ ${binutils:+--binutils "$binutils"} \ ${gcc:+--gcc "$gcc"} |