blob: 484380045e047d492ed93cde4aaa159cc97407d6 [file] [log] [blame]
Justin Yun7fc38022024-07-19 08:43:20 +09001
2#!/bin/bash
3# Copyright 2024 Google Inc. All rights reserved.
4set -ex
5function help() {
6 echo "Finalize VINTF and build a target for test."
7 echo "usage: $(basename "$0") target [goals...]"
8}
9function 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}
20finalize_main_step0_and_m $@