blob: 12b096fa5dc864158f4873b30204d9699f7bf8f4 [file] [log] [blame]
Steven Moreland35496592022-04-19 00:57:45 +00001#!/bin/bash
2
Steven Moreland4d4b5802022-06-02 17:21:30 +00003set -ex
Steven Moreland35496592022-04-19 00:57:45 +00004
Steven Moreland4d4b5802022-06-02 17:21:30 +00005function finalize_main() {
6 local top="$(dirname "$0")"/../..
Steven Moreland35496592022-04-19 00:57:45 +00007
Steven Moreland4d4b5802022-06-02 17:21:30 +00008 # default target to modify tree and build SDK
9 local m="$top/build/soong/soong_ui.bash --make-mode TARGET_PRODUCT=aosp_arm64 TARGET_BUILD_VARIANT=userdebug"
Steven Moreland35496592022-04-19 00:57:45 +000010
Steven Moreland4d4b5802022-06-02 17:21:30 +000011 # This script is WIP and only finalizes part of the Android branch for release.
12 # The full process can be found at (INTERNAL) go/android-sdk-finalization.
Steven Moreland35496592022-04-19 00:57:45 +000013
Steven Moreland4d4b5802022-06-02 17:21:30 +000014 # VNDK snapshot (TODO)
15 # SDK snapshots (TODO)
16 # Update references in the codebase to new API version (TODO)
17 # ...
Steven Moreland35496592022-04-19 00:57:45 +000018
Steven Moreland4d4b5802022-06-02 17:21:30 +000019 AIDL_TRANSITIVE_FREEZE=true $m aidl-freeze-api
Steven Moreland35496592022-04-19 00:57:45 +000020
Steven Moreland4d4b5802022-06-02 17:21:30 +000021 # Update new versions of files. See update-vndk-list.sh (which requires envsetup.sh)
22 $m check-vndk-list || \
23 { cp $top/out/soong/vndk/vndk.libraries.txt $top/build/make/target/product/gsi/current.txt; }
Steven Moreland35496592022-04-19 00:57:45 +000024
Steven Moreland4d4b5802022-06-02 17:21:30 +000025 # for now, we simulate the release state for AIDL, but in the future, we would want
26 # to actually turn the branch into the REL state and test with that
27 AIDL_FROZEN_REL=true $m nothing # test build
Steven Moreland392499b2022-04-22 22:07:27 +000028
Steven Moreland4d4b5802022-06-02 17:21:30 +000029 # Build SDK (TODO)
30 # lunch sdk...
31 # m ...
32}
Steven Moreland35496592022-04-19 00:57:45 +000033
Steven Moreland4d4b5802022-06-02 17:21:30 +000034finalize_main