Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae9037a5 authored by Kevin Cheng's avatar Kevin Cheng Committed by android-build-merger
Browse files

Merge "Add acloud shortcut in envsetup.sh" am: e58de93c am: 9db85cd4

am: d749d1fc

Change-Id: I5c48a40b13af3a96161ccc0bc714e4a2544e7443
parents e581208a d749d1fc
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -1594,6 +1594,25 @@ function validate_current_shell() {
    esac
}

function acloud()
{
    # Let's use the built version over the prebuilt.
    local built_acloud=${ANDROID_HOST_OUT}/bin/acloud
    if [ -f $built_acloud ]; then
        $built_acloud "$@"
        return $?
    fi

    local host_os_arch=$(get_build_var HOST_PREBUILT_TAG)
    case $host_os_arch in
        linux-x86) "$(gettop)"/prebuilts/asuite/acloud/linux-x86/acloud "$@"
        ;;
    *)
        echo "acloud is not supported on your host arch: $host_os_arch"
        ;;
    esac
}

# Execute the contents of any vendorsetup.sh files we can find.
function source_vendorsetup() {
    for dir in device vendor product; do