Run vintf finalization if the target configuration does not set RELEASE_BOARD_API_LEVEL_FROZEN to 'true'; and FINAL_BOARD_API_LEVEL which is the version to finalize is the same with the RELEASE_BOARD_API_LEVEL which is the version that the current tree is building. Also define build-step-0-and-m.sh that runs a test build after the vintf finalization process. Ignore-AOSP-First: finalization script is an exception Bug: 331696132 Test: tools/finalization/build-step-0-and-m.sh Change-Id: I22b9096d57c935e64c4d28f16b95afaa84b79465
37 lines
1.4 KiB
Bash
Executable File
37 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
export FINAL_BUG_ID='0' # CI only
|
|
|
|
export FINAL_PLATFORM_CODENAME='VanillaIceCream'
|
|
export CURRENT_PLATFORM_CODENAME='VanillaIceCream'
|
|
export FINAL_PLATFORM_CODENAME_JAVA='VANILLA_ICE_CREAM'
|
|
export FINAL_PLATFORM_VERSION='15'
|
|
|
|
# Set arbitrary large values for CI.
|
|
# SDK_VERSION needs to be <61 (lint/libs/lint-api/src/main/java/com/android/tools/lint/detector/api/ApiConstraint.kt)
|
|
# There are multiple places where we rely on next SDK version to be previous + 1, e.g. RESOURCES_SDK_INT.
|
|
# We might or might not fix this in future, but for now let's keep it +1.
|
|
export FINAL_PLATFORM_SDK_VERSION='35'
|
|
# Feel free to randomize once in a while to detect buggy version detection code.
|
|
export FINAL_MAINLINE_EXTENSION='13'
|
|
|
|
# Options:
|
|
# 'unfinalized' - branch is in development state,
|
|
# 'vintf' - VINTF is finalized
|
|
# 'sdk' - VINTF and SDK/API are finalized
|
|
# 'rel' - branch is finalized, switched to REL
|
|
export FINAL_STATE='rel'
|
|
|
|
export BUILD_FROM_SOURCE_STUB=true
|
|
|
|
# FINAL versions for VINTF
|
|
# TODO(b/323985297): The version must match with that from the release configuration.
|
|
# Instead of hardcoding the version here, read it from a release configuration.
|
|
export FINAL_BOARD_API_LEVEL='202504'
|
|
export FINAL_CORRESPONDING_VERSION_LETTER='W'
|
|
export FINAL_CORRESPONDING_PLATFORM_VERSION='16'
|
|
export FINAL_NEXT_BOARD_API_LEVEL='202604'
|
|
export FINAL_NEXT_CORRESPONDING_VERSION_LETTER='X'
|