2024-01-31 08:56:10 +01:00
|
|
|
#!/bin/bash
|
|
|
|
# Copyright 2024 Google Inc. All rights reserved.
|
|
|
|
|
|
|
|
# Script to perform a 0th step of Android Finalization: VINTF finalization, create CLs and upload to Gerrit.
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
function commit_step_0_changes() {
|
|
|
|
set +e
|
|
|
|
repo forall -c '\
|
|
|
|
if [[ $(git status --short) ]]; then
|
2024-04-08 16:18:47 +02:00
|
|
|
repo start "'$repo_branch'" ;
|
2024-01-31 08:56:10 +01:00
|
|
|
git add -A . ;
|
|
|
|
git commit -m "Vendor API level $FINAL_BOARD_API_LEVEL is now frozen" \
|
|
|
|
-m "Ignore-AOSP-First: VINTF $FINAL_BOARD_API_LEVEL Finalization
|
|
|
|
Bug: $FINAL_BUG_ID
|
|
|
|
Test: build";
|
2024-04-04 09:47:29 +02:00
|
|
|
repo upload '"$repo_upload_dry_run_arg"' --cbr --no-verify -o nokeycheck -t -y . ;
|
2024-01-31 08:56:10 +01:00
|
|
|
fi'
|
|
|
|
}
|
|
|
|
|
|
|
|
function finalize_step_0_main() {
|
|
|
|
local top="$(dirname "$0")"/../../../..
|
|
|
|
source $top/build/make/tools/finalization/environment.sh
|
2024-04-08 16:18:47 +02:00
|
|
|
local repo_branch="VINTF-$FINAL_BOARD_API_LEVEL-Finalization"
|
|
|
|
source $top/build/make/tools/finalization/command-line-options.sh
|
2024-01-31 08:56:10 +01:00
|
|
|
|
|
|
|
local m="$top/build/soong/soong_ui.bash --make-mode TARGET_RELEASE=next TARGET_PRODUCT=aosp_arm64 TARGET_BUILD_VARIANT=userdebug"
|
|
|
|
|
|
|
|
source $top/build/make/tools/finalization/finalize-vintf-resources.sh
|
|
|
|
|
|
|
|
# move all changes to finalization branch/topic and upload to gerrit
|
|
|
|
commit_step_0_changes
|
|
|
|
|
|
|
|
# build to confirm everything is OK
|
|
|
|
AIDL_FROZEN_REL=true $m
|
|
|
|
}
|
|
|
|
|
2024-04-04 09:47:29 +02:00
|
|
|
finalize_step_0_main $@
|