Justin Yun | 7fc3802 | 2024-07-19 08:43:20 +0900 | [diff] [blame] | 1 | |
| 2 | #!/bin/bash |
| 3 | # Copyright 2024 Google Inc. All rights reserved. |
| 4 | set -ex |
| 5 | function help() { |
| 6 | echo "Finalize VINTF and build a target for test." |
| 7 | echo "usage: $(basename "$0") target [goals...]" |
| 8 | } |
| 9 | function finalize_main_step0_and_m() { |
| 10 | if [ $# == 0 ] ; then |
| 11 | help |
| 12 | exit 1 |
| 13 | fi; |
| 14 | local top="$(dirname "$0")"/../../../.. |
| 15 | source $top/build/make/tools/finalization/build-step-0.sh |
| 16 | local m="$top/build/soong/soong_ui.bash --make-mode TARGET_PRODUCT=$1 TARGET_RELEASE=fina_0 TARGET_BUILD_VARIANT=userdebug" |
| 17 | # This command tests the release state for AIDL. |
| 18 | AIDL_FROZEN_REL=true $m ${@:2} |
| 19 | } |
| 20 | finalize_main_step0_and_m $@ |