blob: e61c644de0ad29b25cd72f37cdb9b87c8418eab4 [file] [log] [blame]
Justin Yun7c28c232024-01-31 16:56:10 +09001#!/bin/bash
2# Copyright 2024 Google Inc. All rights reserved.
3
4# Script to perform a 0th step of Android Finalization: VINTF finalization, create CLs and upload to Gerrit.
5
6set -ex
7
8function commit_step_0_changes() {
9 set +e
10 repo forall -c '\
11 if [[ $(git status --short) ]]; then
12 repo start "VINTF-$FINAL_BOARD_API_LEVEL-Finalization" ;
13 git add -A . ;
14 git commit -m "Vendor API level $FINAL_BOARD_API_LEVEL is now frozen" \
15 -m "Ignore-AOSP-First: VINTF $FINAL_BOARD_API_LEVEL Finalization
16Bug: $FINAL_BUG_ID
17Test: build";
18 repo upload --cbr --no-verify -o nokeycheck -t -y . ;
19 fi'
20}
21
22function finalize_step_0_main() {
23 local top="$(dirname "$0")"/../../../..
24 source $top/build/make/tools/finalization/environment.sh
25
26 local m="$top/build/soong/soong_ui.bash --make-mode TARGET_RELEASE=next TARGET_PRODUCT=aosp_arm64 TARGET_BUILD_VARIANT=userdebug"
27
28 source $top/build/make/tools/finalization/finalize-vintf-resources.sh
29
30 # move all changes to finalization branch/topic and upload to gerrit
31 commit_step_0_changes
32
33 # build to confirm everything is OK
34 AIDL_FROZEN_REL=true $m
35}
36
37finalize_step_0_main