aboutsummaryrefslogtreecommitdiff
path: root/lkft-aosp-master-x15.yaml
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2019-11-06 19:45:24 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2019-11-06 11:50:24 +0000
commit03b1a86142353fdc65399f0a11245a2288871a48 (patch)
tree4d2ba178cc54dec3fab495c70f1846afe2d3838a /lkft-aosp-master-x15.yaml
parent6f81d051f7edc6d8ece5c367f3b17a4cbe483de3 (diff)
lkft-aosp-master-x15.yaml: delete ${DIR_SRV_AOSP_MASTER}/build
except the .repo directory, which is used to speed up the repo sync command Change-Id: I0513ab75ff68ddd760f36d1829684ebb4fdbf680 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Diffstat (limited to 'lkft-aosp-master-x15.yaml')
-rw-r--r--lkft-aosp-master-x15.yaml14
1 files changed, 4 insertions, 10 deletions
diff --git a/lkft-aosp-master-x15.yaml b/lkft-aosp-master-x15.yaml
index 89c1271b..e221d601 100644
--- a/lkft-aosp-master-x15.yaml
+++ b/lkft-aosp-master-x15.yaml
@@ -89,7 +89,6 @@
git clone --depth 1 http://android-git.linaro.org/git/android-build-configs.git build-configs
ANDROID_ROOT="${DIR_SRV_AOSP_MASTER}/build"
- mkdir -p ${ANDROID_ROOT}
export BUILD_CONFIG_FILENAME=${BUILD_CONFIG_FILENAME:-${JOB_NAME#android-*}}
@@ -108,15 +107,10 @@
export CONFIG=`base64 -w 0 config.txt`
# Delete sources before build to save space
- cd ${ANDROID_ROOT}/
- rm -rf art/ dalvik/ kernel/ bionic/ developers/ libcore/ sdk/ bootable/ development/ libnativehelper/ system/ build/ device/ test/ build-info/ docs/ packages/ toolchain/ .ccache/ external/ pdk/ tools/ compatibility/ frameworks/ platform_testing/ vendor/ cts/ hardware/ prebuilts/ linaro* clang-src/ hikey-linaro/configs hikey-linaro-4.19
- rm -rf .repo/manifests* .repo/local_manifests android-patchsets
- rm -fr optee/optee_os
- # delete this kernel repository as we have patches applied
- rm -fr hikey-linaro
- # clean the out directory as this workspace is used accross multiple builds
- rm -fr out
- cd -
+ mv ${ANDROID_ROOT}/.repo ${DIR_SRV_AOSP_MASTER}/.repo-bak
+ rm -fr ${ANDROID_ROOT} && mkdir -p ${ANDROID_ROOT}
+ mv ${DIR_SRV_AOSP_MASTER}/.repo-bak ${ANDROID_ROOT}/.repo
+ rm -fr ${ANDROID_ROOT}/.repo/manifests ${ANDROID_ROOT}/.repo/local_manifests
# Build Android for X15
build-tools/node/build us-east-1.ec2-git-mirror.linaro.org "${CONFIG}"