From 45844ab338c02240c22d9427aa78ee4eb2771d0f Mon Sep 17 00:00:00 2001 From: Cole Faust Date: Tue, 30 Aug 2022 13:59:07 -0700 Subject: [PATCH] Add avbtool alias As a replacement for the removal of the avbtool symlink Bug: 198619163 Test: Manually running `avbtool` Change-Id: I54d504a5132e5ac89337e67a07bca0a6f410c272 --- envsetup.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/envsetup.sh b/envsetup.sh index 550dca86bb..3f5ce330a8 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -2045,6 +2045,13 @@ function showcommands() { fi } +function avbtool() { + if [[ ! -f "$ANDROID_SOONG_HOST_OUT"/bin/avbtool ]]; then + m avbtool + fi + "$ANDROID_SOONG_HOST_OUT"/bin/avbtool $@ +} + validate_current_shell source_vendorsetup addcompletions