7c28c2327d
Define `vintf` state that have completed vintf finalization only. Only if FINAL_STATE is 'unfinalized' run the vintf finalization process to finalize vintf. The new step-0 only runs the vintf finalization. Ignore-AOSP-First: trunk-stable changes (b/304316873) Bug: 318883690 Test: build-step-0.sh && build/soong/soong_ui.bash \ --make-mode TARGET_PRODUCT=cf_x86_64_phone TARGET_RELEASE=fina_0 \ TARGET_BUILD_VARIANT=userdebug droid dist Change-Id: If3525f38204fa546744b9ccf8dc9e63711823abd
29 lines
887 B
Bash
Executable file
29 lines
887 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
function finalize_main_step12() {
|
|
local top="$(dirname "$0")"/../../../..
|
|
source $top/build/make/tools/finalization/environment.sh
|
|
|
|
if [ "$FINAL_STATE" = "unfinalized" ] ; then
|
|
# VINTF finalization
|
|
source $top/build/make/tools/finalization/finalize-vintf-resources.sh
|
|
fi;
|
|
|
|
if [ "$FINAL_STATE" = "unfinalized" ] || [ "$FINAL_STATE" = "vintf" ] ; then
|
|
# SDK codename -> int
|
|
source $top/build/make/tools/finalization/finalize-sdk-resources.sh
|
|
fi;
|
|
|
|
if [ "$FINAL_STATE" = "unfinalized" ] || [ "$FINAL_STATE" = "vintf" ] || [ "$FINAL_STATE" = "sdk" ] ; then
|
|
# ADB, Platform/Mainline SDKs build and move to prebuilts
|
|
source $top/build/make/tools/finalization/localonly-steps.sh
|
|
|
|
# REL
|
|
source $top/build/make/tools/finalization/finalize-sdk-rel.sh
|
|
fi;
|
|
}
|
|
|
|
finalize_main_step12
|
|
|