From 397aa8f61328976b29adff53839deb8bd4257e78 Mon Sep 17 00:00:00 2001 From: dakkar Date: Sun, 15 Jul 2018 12:10:52 +0100 Subject: use phh manifests, copy instead of checkout for my stuff --- build.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'build.sh') diff --git a/build.sh b/build.sh index d3fb41b..e808b47 100644 --- a/build.sh +++ b/build.sh @@ -28,14 +28,24 @@ function clone_or_checkout() { } function init_repo() { + rm -f .repo/local_manifests/ + rm -f .repo/dakkar-patches/ repo init -u https://github.com/LineageOS/android.git -b lineage-15.1 } function setup_code() { - clone_or_checkout .repo/local_manifests "$thisdir" master - clone_or_checkout dakkar-patches "$thisdir" master + # manifests + clone_or_checkout .repo/local_manifests https://github.com/phhusson/treble_manifest master + + cp "$thisdir"/manifest/dakkar.xml .repo/local_manifests/ + rm -f .repo/local_manifests/replace.xml + + # patches clone_or_checkout patches https://github.com/phhusson/treble_patches android-8.1 + mkdir -p dakkar-patches/ + cp -a "$thisdir"/patches dakkar-patches/ + repo sync -c -j$jobs --force-sync rm -f device/*/sepolicy/common/private/genfs_contexts -- cgit v1.2.3