Define `vintf` state that have completed vintf finalization only. Only if FINAL_STATE is 'unfinalized' run the vintf finalization process to finalize vintf. The new step-0 only runs the vintf finalization. Ignore-AOSP-First: trunk-stable changes (b/304316873) Bug: 318883690 Test: build-step-0.sh && build/soong/soong_ui.bash \ --make-mode TARGET_PRODUCT=cf_x86_64_phone TARGET_RELEASE=fina_0 \ TARGET_BUILD_VARIANT=userdebug droid dist Change-Id: If3525f38204fa546744b9ccf8dc9e63711823abd
33 lines
1.2 KiB
Bash
Executable File
33 lines
1.2 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='58'
|
|
|
|
# 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='unfinalized'
|
|
|
|
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='202404'
|