diff options
-rw-r--r-- | build-scripts/helpers | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build-scripts/helpers b/build-scripts/helpers index 5a2ad9d..a418b4e 100644 --- a/build-scripts/helpers +++ b/build-scripts/helpers @@ -36,6 +36,10 @@ repo-sync-stubborn () { repo-sync-from-mirror () { setup-repo-vars + if [ "$MAKE_TARGETS" != "combine_kernel_prebuilt" ]; then + time cp -r /AndroidSource/.repo/ . + fi + repo init $REPO_QUIET -u "${MANIFEST_REPO}" -b "${MANIFEST_BRANCH}" -m "${MANIFEST_FILENAME}" $REPO_MIRROR -g $REPO_GROUPS # Save input manifest as build artifact for reference mkdir -p out @@ -90,7 +94,7 @@ repo-sync-from-seed () { calc_make_jobs () { if [ -z "$MAKE_JOBS" ]; then cpuc=`cat /proc/cpuinfo | grep processor | wc -l` - MAKE_JOBS=$(($cpuc * 4)) + MAKE_JOBS=6 fi } |