Skip to content

Commit

Permalink
build-dakkar: Always fetch the latest branch for AOSP builds
Browse files Browse the repository at this point in the history
Rather than manually updating each branch when a new one comes out, we
can just fetch the latest branch in the tree and use that.

Signed-off-by: Tyler Nijmeh <[email protected]>
  • Loading branch information
tytydraco committed Apr 12, 2019
1 parent 217353a commit b9c8d55
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions build-dakkar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,21 +81,24 @@ function get_rom_type() {
case "$1" in
aosp80)
mainrepo="https://android.googlesource.com/platform/manifest.git"
mainbranch="android-vts-8.0_r4"
ver=`git ls-remote --heads $mainrepo | grep -o 'android-vts-8.0_r.*' | grep -o '_r.*' | grep -o '[0-9]*' | sort -n | sed '$!d'`
mainbranch="android-vts-8.0_r$ver"
localManifestBranch="master"
treble_generate=""
extra_make_options=""
;;
aosp81)
mainrepo="https://android.googlesource.com/platform/manifest.git"
mainbranch="android-8.1.0_r48"
ver=`git ls-remote --heads $mainrepo | grep -o 'android-8.1.0_r.*' | grep -o '_r.*' | grep -o '[0-9]*' | sort -n | sed '$!d'`
mainbranch="android-8.1.0_r$ver"
localManifestBranch="android-8.1"
treble_generate=""
extra_make_options=""
;;
aosp90)
mainrepo="https://android.googlesource.com/platform/manifest.git"
mainbranch="android-9.0.0_r21"
ver=`git ls-remote --heads $mainrepo | grep -o 'android-9.0.0_r.*' | grep -o '_r.*' | grep -o '[0-9]*' | sort -n | sed '$!d'`
mainbranch="android-9.0.0_r$ver"
localManifestBranch="android-9.0"
treble_generate=""
extra_make_options=""
Expand Down

0 comments on commit b9c8d55

Please sign in to comment.