diff options
author | dakkar <dakkar@thenautilus.net> | 2018-07-15 12:10:52 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2018-07-15 12:10:52 +0100 |
commit | 397aa8f61328976b29adff53839deb8bd4257e78 (patch) | |
tree | 2081264656ce2d05a43c8e79097ad6d30c1e041b /build.sh | |
parent | smaller FRP patch (diff) | |
download | dakkar-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.sh | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -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 |