2023-02-09 23:40:53 +01:00
|
|
|
#!/bin/bash
|
|
|
|
# Script to perform a 2nd step of Android Finalization: REL finalization, create CLs and upload to Gerrit.
|
|
|
|
|
|
|
|
function commit_step_2_changes() {
|
|
|
|
repo forall -c '\
|
|
|
|
if [[ $(git status --short) ]]; then
|
2023-02-13 21:22:10 +01:00
|
|
|
repo start "$FINAL_PLATFORM_CODENAME-SDK-Finalization-Rel" ;
|
2023-02-09 23:40:53 +01:00
|
|
|
git add -A . ;
|
2023-02-13 21:22:10 +01:00
|
|
|
git commit -m "$FINAL_PLATFORM_CODENAME/$FINAL_PLATFORM_SDK_VERSION is now REL" \
|
|
|
|
-m "Ignore-AOSP-First: $FINAL_PLATFORM_CODENAME Finalization
|
|
|
|
Bug: $FINAL_BUG_ID
|
2023-02-09 23:40:53 +01:00
|
|
|
Test: build";
|
|
|
|
|
|
|
|
repo upload --cbr --no-verify -o nokeycheck -t -y . ;
|
|
|
|
fi'
|
|
|
|
}
|
|
|
|
|
|
|
|
function finalize_step_2_main() {
|
|
|
|
local top="$(dirname "$0")"/../../../..
|
|
|
|
source $top/build/make/tools/finalization/environment.sh
|
|
|
|
|
|
|
|
local m="$top/build/soong/soong_ui.bash --make-mode TARGET_PRODUCT=aosp_arm64 TARGET_BUILD_VARIANT=userdebug"
|
|
|
|
|
|
|
|
# prebuilts etc
|
|
|
|
source $top/build/make/tools/finalization/finalize-sdk-rel.sh
|
|
|
|
|
2023-02-19 19:40:44 +01:00
|
|
|
# move all changes to finalization branch/topic and upload to gerrit
|
|
|
|
commit_step_2_changes
|
2023-02-09 23:40:53 +01:00
|
|
|
|
|
|
|
# build to confirm everything is OK
|
|
|
|
AIDL_FROZEN_REL=true $m
|
|
|
|
}
|
|
|
|
|
|
|
|
finalize_step_2_main
|