aboutsummaryrefslogtreecommitdiff
path: root/build-scripts/helpers
diff options
context:
space:
mode:
authorPaul Sokolovsky <paul.sokolovsky@linaro.org>2012-03-08 13:30:05 +0200
committerPaul Sokolovsky <paul.sokolovsky@linaro.org>2012-03-08 13:30:05 +0200
commitac1f52338d2811da687346fbfa1e933375963042 (patch)
tree9e09e6c4096d54f37d3a7cb333bd50bb947cd6bb /build-scripts/helpers
parente9ff7a2532373b250098c59ff9fd9a25ac635040 (diff)
Use SYNC_JOBS default of 8 in case of seeded builds.
Improves local mirror checkout time, gets most of EC2 instances, without affecting networked repo case.
Diffstat (limited to 'build-scripts/helpers')
-rw-r--r--build-scripts/helpers9
1 files changed, 8 insertions, 1 deletions
diff --git a/build-scripts/helpers b/build-scripts/helpers
index edfc675..d1d7e73 100644
--- a/build-scripts/helpers
+++ b/build-scripts/helpers
@@ -9,7 +9,14 @@ setup-repo-vars () {
if [ -n "$REPO_QUIET" ]; then
REPO_QUIET="--quiet"
fi
- SYNC_JOBS=${SYNC_JOBS-3}
+ if [ -n "$REPO_SEED_URL" ]; then
+ # If we use seeded builds, use higher value of repo sync -j,
+ # as large share of repository content will be local and thus
+ # only disk i/o bound.
+ SYNC_JOBS=${SYNC_JOBS-8}
+ else
+ SYNC_JOBS=${SYNC_JOBS-3}
+ fi
}
repo-sync-from-mirror () {