summaryrefslogtreecommitdiff
path: root/tcwg-dev-build.sh
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2019-02-18 18:13:24 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2019-02-26 10:15:43 +0000
commit644c2eba2e682c14cf064de47c21f91cf5106fd9 (patch)
tree654e8ecf36fef49e3b6cff89b190a4c9774b8a04 /tcwg-dev-build.sh
parent90935acc02c6219a06613ae6a0c85a65f8566acc (diff)
tcwg-dev-build: Enable builds using manifests
If manifest.txt was uploaded in job's parameters, then pass --manifest option to MakeRelease.job. Fix MakeRelease.job to not pass --target when manifest is set, otherwise ABE complains. Change-Id: I2aa25d3840281159e2ed00cfaab3b9e47a661801
Diffstat (limited to 'tcwg-dev-build.sh')
-rwxr-xr-xtcwg-dev-build.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tcwg-dev-build.sh b/tcwg-dev-build.sh
index cf24ab60..24b7b930 100755
--- a/tcwg-dev-build.sh
+++ b/tcwg-dev-build.sh
@@ -8,6 +8,7 @@ convert_args_to_variables "$@"
abe_branch="${abe_branch-tested}"
dry_run="${dry_run-false}"
+manifest=""
release_name="${release_name-default}"
target="${target-aarch64-linux-gnu}"
version="${version-default}"
@@ -23,6 +24,11 @@ if [ x"$release_name" = x"default" ]; then
release_name="$(date +%Y%m%d-%H_%M_%S)"
fi
+manifest_opt=
+if [ -f "$manifest" ]; then
+ manifest_opt="--manifest $(abs_path "$manifest")"
+fi
+
manifest_validation_opt=
if [ x"$target" = x"native" ]; then
manifest_validation_opt="--manifest_validation false"
@@ -35,6 +41,7 @@ $scripts/MakeRelease.job \
--target $target \
--toolchainconfig $version \
--workspace `pwd` \
+ $manifest_opt \
$manifest_validation_opt \
${binutils:+--binutils "$binutils"} \
${gcc:+--gcc "$gcc"}