aboutsummaryrefslogtreecommitdiff
path: root/build-scripts/create-user-build-script
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2016-07-07 13:03:39 +0800
committerFathi Boudra <fathi.boudra@linaro.org>2016-07-07 05:38:36 +0000
commitdebbbbf86151c4c33e9691b9bd0098cd1be9e062 (patch)
tree7c4de1c8425475e0dbd509548d39b4495fb95ad4 /build-scripts/create-user-build-script
parent5050bda7ff2430ff452aa645286c444b1b7a38ca (diff)
downloadlinaro-android-build-tools-debbbbf86151c4c33e9691b9bd0098cd1be9e062.tar.gz
create-user-build-script: add support for using AOSP mirror
with the -u option, we can sepcify the AOSP mirror which could help to repo sync AOSP much faster Change-Id: I4d53bcce50945cc274b036392dd49c6471d9e543 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Diffstat (limited to 'build-scripts/create-user-build-script')
-rwxr-xr-xbuild-scripts/create-user-build-script6
1 files changed, 6 insertions, 0 deletions
diff --git a/build-scripts/create-user-build-script b/build-scripts/create-user-build-script
index 1a4035b..57ecb54 100755
--- a/build-scripts/create-user-build-script
+++ b/build-scripts/create-user-build-script
@@ -46,6 +46,8 @@ usage()
echo " an exact replica build"
echo " -d <directory> The directory to download code and build from"
echo " Default: \${DIR}"
+ echo " -u <mirror-manifest-url> The manifest url to your AOSP mirror"
+ echo " Default: ${MANIFEST_REPO}"
echo " -l <login-id> login-id to clone from linaro-private git repositories"
echo " If in doubt, please contact Linaro Android mailing list for details"
echo " Default: \${LINARO_ANDROID_ACCESS_ID}"
@@ -58,6 +60,7 @@ while getopts "${USAGE_OPTOVERLAY}d:l:hty" optn; do
case \${optn} in
${USAGE_OPTHANDLER}
d ) DIR=\${OPTARG};;
+ u ) MIRROR=\${OPTARG};;
l ) LINARO_ANDROID_ACCESS_ID=\${OPTARG};;
t ) EXACT=0;;
y ) INTERACTIVE=0;;
@@ -243,6 +246,9 @@ curl "https://android-git.linaro.org/gitweb?p=tools/repo.git;a=blob_plain;f=repo
chmod +x repo
# Download the android code
+if [ -n "\${MIRROR}" ]; then
+ MANIFEST_REPO="\${MIRROR}"
+fi
./repo init -u \${MANIFEST_REPO} -b \${MANIFEST_BRANCH} -m \${MANIFEST_FILENAME} ${REPO_MIRROR} ${REPO_GROUPS_OPTION}
if [ \${EXACT} -eq 1 ]; then
rm .repo/manifest.xml