aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2014-03-14 11:31:15 +0530
committerVishal Bhoj <vishal.bhoj@linaro.org>2014-03-14 11:46:11 +0530
commitcb4159f21b244e325fee2c1efeaefddf72a0f87d (patch)
treee16e84521af1fb1f89ca5f927e9cf0468c5d2522
parent02ea29c2844ad7a4d8aa8b18c29eaca268b46508 (diff)
Don't copy complete source while doing kernel build
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
-rw-r--r--build-scripts/build-android4
-rw-r--r--build-scripts/helpers5
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