aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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