aboutsummaryrefslogtreecommitdiff
path: root/build-scripts/create-user-build-script
diff options
context:
space:
mode:
authorAmit Pundir <amit.pundir@linaro.org>2013-01-24 14:26:36 +0530
committerAmit Pundir <amit.pundir@linaro.org>2013-01-24 14:26:36 +0530
commitd229a06b6ea9652b93737f8b84c3790b7b373da5 (patch)
tree12e36c921a60c844891b70be0ee56b41196470f4 /build-scripts/create-user-build-script
parenta05b484e028143309ba273454947f7e40bbef294 (diff)
user build script: make SOURCE_OVERLAY optional
Diffstat (limited to 'build-scripts/create-user-build-script')
-rwxr-xr-xbuild-scripts/create-user-build-script10
1 files changed, 7 insertions, 3 deletions
diff --git a/build-scripts/create-user-build-script b/build-scripts/create-user-build-script
index f7d059f..f3817cc 100755
--- a/build-scripts/create-user-build-script
+++ b/build-scripts/create-user-build-script
@@ -100,7 +100,9 @@ if [ "a\$MANIFEST" == "a" -a \$EXACT -eq 1 ]; then
fi
if [ "a\$SOURCE_OVERLAY" == "a" ]; then
echo "ERROR: no source overlay provided. Please download from http://snapshots.linaro.org/android/binaries/$SOURCE_OVERLAY. This must be done from a browser that accepts cookies."
- exit 1
+ echo "Do you want to continue without overlay (which may result in broken build)? (y/n) "
+ read OVERLAY
+ [ \${OVERLAY} == y ] || exit 1
fi
EOF
fi
@@ -232,8 +234,10 @@ EOF
if [ -n "$SOURCE_OVERLAY" ]; then
cat <<EOF
-# extract the vendor's source overlay
-tar -x -a -f "\$SOURCE_OVERLAY" -C .
+if [ "a\$SOURCE_OVERLAY" != "a" ]; then
+ # extract the vendor's source overlay
+ tar -x -a -f "\$SOURCE_OVERLAY" -C .
+fi
EOF
fi
echo