Merge "Script fixes and improvements." am: be8badd74e
am: 9cc5216ed0
am: 661c11ecbb
am: 159c0597b2
am: 4ccc9ab350
Original change: https://android-review.googlesource.com/c/platform/build/+/2581131 Change-Id: I0fb6ec2c6a35e17aefe8e14d38c193222ea6c56f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
5e343c1aa5
3 changed files with 6 additions and 4 deletions
|
@ -7,7 +7,6 @@ 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_BUILD_PREFIX='VP1A'
|
||||
export FINAL_PLATFORM_VERSION='15'
|
||||
|
||||
# Set arbitrary large values for CI.
|
||||
|
|
|
@ -4,13 +4,15 @@ set -ex
|
|||
|
||||
function apply_droidstubs_hack() {
|
||||
if ! grep -q 'STOPSHIP: RESTORE THIS LOGIC WHEN DECLARING "REL" BUILD' "$top/build/soong/java/droidstubs.go" ; then
|
||||
git -C "$top/build/soong" apply --allow-empty ../../build/make/tools/finalization/build_soong_java_droidstubs.go.apply_hack.diff
|
||||
local build_soong_git_root="$(readlink -f $top/build/soong)"
|
||||
git -C "$build_soong_git_root" apply --allow-empty ../../build/make/tools/finalization/build_soong_java_droidstubs.go.apply_hack.diff
|
||||
fi
|
||||
}
|
||||
|
||||
function apply_resources_sdk_int_fix() {
|
||||
if ! grep -q 'public static final int RESOURCES_SDK_INT = SDK_INT;' "$top/frameworks/base/core/java/android/os/Build.java" ; then
|
||||
git -C "$top/frameworks/base" apply --allow-empty ../../build/make/tools/finalization/frameworks_base.apply_resource_sdk_int.diff
|
||||
local base_git_root="$(readlink -f $top/frameworks/base)"
|
||||
git -C "$base_git_root" apply --allow-empty ../../build/make/tools/finalization/frameworks_base.apply_resource_sdk_int.diff
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
@ -34,7 +34,8 @@ function finalize_sdk_rel() {
|
|||
revert_resources_sdk_int_fix
|
||||
|
||||
# build/make/core/version_defaults.mk
|
||||
sed -i -e "s/PLATFORM_VERSION_CODENAME.${FINAL_BUILD_PREFIX} := .*/PLATFORM_VERSION_CODENAME.${FINAL_BUILD_PREFIX} := REL/g" "$top/build/make/core/version_defaults.mk"
|
||||
# Mark all versions "released".
|
||||
sed -i 's/\(PLATFORM_VERSION_CODENAME\.[^[:space:]]*\) := [^[:space:]]*/\1 := REL/g' "$top/build/make/core/version_defaults.mk"
|
||||
|
||||
# cts
|
||||
echo "$FINAL_PLATFORM_VERSION" > "$top/cts/tests/tests/os/assets/platform_versions.txt"
|
||||
|
|
Loading…
Reference in a new issue