summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rw-r--r--build.sh14
1 files changed, 12 insertions, 2 deletions
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