platform_build/finalize_branch_for_release.sh
Alex Buynytskyy 3bd1b91877 Extract finalization build to a separate script.
For finalization CI we'll do multiple builds and tests in a separate
branch.

Bug: 243966946
Test: abdt in nightly
Change-Id: Ie90705de3145c06363536613e57c0de504b5eb1b
2022-09-22 11:32:29 -07:00

28 lines
727 B
Bash
Executable file

#!/bin/bash
set -ex
function finalize_main() {
local top="$(dirname "$0")"/../..
# default target to modify tree and build SDK
local m="$top/build/soong/soong_ui.bash --make-mode TARGET_PRODUCT=aosp_arm64 TARGET_BUILD_VARIANT=userdebug"
# Build finalization artifacts.
source $top/build/make/finalize-aidl-vndk-sdk-resources.sh
# This command tests:
# The release state for AIDL.
# ABI difference between user and userdebug builds.
# Resource/SDK finalization.
# In the future, we would want to actually turn the branch into the REL
# state and test with that.
AIDL_FROZEN_REL=true $m droidcore
# Build SDK (TODO)
# lunch sdk...
# m ...
}
finalize_main