summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2018-07-15 12:10:52 +0100
committerdakkar <dakkar@thenautilus.net>2018-07-15 12:10:52 +0100
commit397aa8f61328976b29adff53839deb8bd4257e78 (patch)
tree2081264656ce2d05a43c8e79097ad6d30c1e041b /build.sh
parentsmaller FRP patch (diff)
downloaddakkar-android-huawei-m5-397aa8f61328976b29adff53839deb8bd4257e78.tar.gz
dakkar-android-huawei-m5-397aa8f61328976b29adff53839deb8bd4257e78.tar.bz2
dakkar-android-huawei-m5-397aa8f61328976b29adff53839deb8bd4257e78.zip
use phh manifests, copy instead of checkout for my stuff
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