From cb4159f21b244e325fee2c1efeaefddf72a0f87d Mon Sep 17 00:00:00 2001 From: Vishal Bhoj Date: Fri, 14 Mar 2014 11:31:15 +0530 Subject: Don't copy complete source while doing kernel build Signed-off-by: Vishal Bhoj --- build-scripts/build-android | 4 +++- build-scripts/helpers | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/build-scripts/build-android b/build-scripts/build-android index 001aebc..e61c23b 100644 --- a/build-scripts/build-android +++ b/build-scripts/build-android @@ -69,7 +69,9 @@ else # Setup CCACHE to be used between different builds export USE_CCACHE=1 export CCACHE_DIR=/Android/ccache - prebuilts/misc/linux-x86/ccache/ccache -M 75G + if [ "$MAKE_TARGETS" != "combine_kernel_prebuilt" ]; then + prebuilts/misc/linux-x86/ccache/ccache -M 75G + fi MAKE_TARGETS="${MAKE_TARGETS-boottarball systemtarball userdatatarball}" calc_make_jobs diff --git a/build-scripts/helpers b/build-scripts/helpers index 7fc2a87..80b09dd 100644 --- a/build-scripts/helpers +++ b/build-scripts/helpers @@ -36,7 +36,10 @@ repo-sync-stubborn () { repo-sync-from-mirror () { setup-repo-vars - time cp -r /AndroidSource/.repo/ . + 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 -- cgit v1.2.3