Skip to content

Commit

Permalink
Fix target & branch according to current build
Browse files Browse the repository at this point in the history
  • Loading branch information
retroinspect committed Sep 4, 2023
1 parent 4403f67 commit 0bbd66b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/build-android-with-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function get_default_lunch_target {
local def_lunch_target=""
case "$(uname -m)" in
x86_64|i386|x86|amd64) def_lunch_target="aosp_cf_x86_64_phone-trunk_staging-userdebug" ;;
aarch64|arm64) def_lunch_target="aosp_cf_arm64_phone-userdebug" ;;
aarch64|arm64) def_lunch_target="aosp_cf_arm64_only_phone-trunk_staging-userdebug" ;;
*)
>&2 echo "unsupported architecture $(uname -m)"
exit 10
Expand Down
7 changes: 5 additions & 2 deletions docker/download-aosp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,15 @@ function parse_opts() {
ARCH=$2
case "${ARCH}" in
x86)
TARGET='aosp_x86-trunk_staging-userdebug'
THROTTLED=
;;
x86_64)
THROTTLED='-throttled'
TARGET='aosp_cf_x86_64_phone-trunk_staging-userdebug'
THROTTLED=
;;
arm64|aarch64)
TARGET='aosp_cf_arm64_only_phone-trunk_staging-userdebug'
ARCH='arm64'
THROTTLED='-throttled'
;;
Expand Down Expand Up @@ -134,7 +137,7 @@ SKIP_USERDATA=""

parse_opts $*

URL=https://ci.android.com/builds/latest/branches/aosp-main${THROTTLED}/targets/aosp_cf_${ARCH}_phone-userdebug/view/BUILD_INFO
URL=https://ci.android.com/builds/latest/branches/aosp-main${THROTTLED}/targets/${TARGET}/view/BUILD_INFO
RURL=$(curl -Ls -o /dev/null -w %{url_effective} ${URL})

if [ "${DOWNLOAD_ANDROID}" -eq 1 ]; then
Expand Down

0 comments on commit 0bbd66b

Please sign in to comment.