Steven Moreland | 3549659 | 2022-04-19 00:57:45 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
Steven Moreland | 4d4b580 | 2022-06-02 17:21:30 +0000 | [diff] [blame] | 3 | set -ex |
Steven Moreland | 3549659 | 2022-04-19 00:57:45 +0000 | [diff] [blame] | 4 | |
Steven Moreland | 4d4b580 | 2022-06-02 17:21:30 +0000 | [diff] [blame] | 5 | function finalize_main() { |
| 6 | local top="$(dirname "$0")"/../.. |
Steven Moreland | 3549659 | 2022-04-19 00:57:45 +0000 | [diff] [blame] | 7 | |
Steven Moreland | 4d4b580 | 2022-06-02 17:21:30 +0000 | [diff] [blame] | 8 | # 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 Moreland | 3549659 | 2022-04-19 00:57:45 +0000 | [diff] [blame] | 10 | |
Steven Moreland | 4d4b580 | 2022-06-02 17:21:30 +0000 | [diff] [blame] | 11 | # 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 Moreland | 3549659 | 2022-04-19 00:57:45 +0000 | [diff] [blame] | 13 | |
Steven Moreland | 4d4b580 | 2022-06-02 17:21:30 +0000 | [diff] [blame] | 14 | # VNDK snapshot (TODO) |
| 15 | # SDK snapshots (TODO) |
| 16 | # Update references in the codebase to new API version (TODO) |
| 17 | # ... |
Steven Moreland | 3549659 | 2022-04-19 00:57:45 +0000 | [diff] [blame] | 18 | |
Steven Moreland | 4d4b580 | 2022-06-02 17:21:30 +0000 | [diff] [blame] | 19 | AIDL_TRANSITIVE_FREEZE=true $m aidl-freeze-api |
Steven Moreland | 3549659 | 2022-04-19 00:57:45 +0000 | [diff] [blame] | 20 | |
Steven Moreland | 4d4b580 | 2022-06-02 17:21:30 +0000 | [diff] [blame] | 21 | # 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 Moreland | 3549659 | 2022-04-19 00:57:45 +0000 | [diff] [blame] | 24 | |
Steven Moreland | 4d4b580 | 2022-06-02 17:21:30 +0000 | [diff] [blame] | 25 | # 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 Moreland | 392499b | 2022-04-22 22:07:27 +0000 | [diff] [blame] | 28 | |
Steven Moreland | 4d4b580 | 2022-06-02 17:21:30 +0000 | [diff] [blame] | 29 | # Build SDK (TODO) |
| 30 | # lunch sdk... |
| 31 | # m ... |
| 32 | } |
Steven Moreland | 3549659 | 2022-04-19 00:57:45 +0000 | [diff] [blame] | 33 | |
Steven Moreland | 4d4b580 | 2022-06-02 17:21:30 +0000 | [diff] [blame] | 34 | finalize_main |