xref: /aosp_15_r20/build/make/tools/finalization/build-step-0-and-m.sh (revision 9e94795a3d4ef5c1d47486f9a02bb378756cea8a)
1
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 $@
21