AIDEGen: Adopt prebuilt mechanism to bypass 'm aidegen'.

Bug: 119642842
Test: m clean;aidegen tradefed
Change-Id: Ib25591de77762ffdcc72ea4a064a50cfb3e5015e
This commit is contained in:
patricktu
2018-11-29 15:25:40 +08:00
parent b906ebb313
commit 345c9ae44f
2 changed files with 16 additions and 0 deletions

View File

@@ -1625,6 +1625,19 @@ function acloud()
esac
}
function aidegen()
{
# Always use the prebuilt version.
local host_os_arch=$(get_build_var HOST_PREBUILT_TAG)
case $host_os_arch in
linux-x86) "$(gettop)"/prebuilts/asuite/aidegen/linux-x86/aidegen "$@"
;;
*)
echo "aidegen 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