Update sdk finalizer for change to api_levels_released_versions
Change the starlark file, not the soong one. Bug: 279095899 Test: manually ran this snippet Change-Id: If7b93096743f79a5303db4330fc03cbc8fb5bae3
This commit is contained in:
@@ -112,10 +112,10 @@ function finalize_aidl_vndk_sdk_resources() {
|
|||||||
sed -i -e "s/sepolicy_major_vers := .*/sepolicy_major_vers := ${FINAL_PLATFORM_SDK_VERSION}/g" "$top/build/make/core/config.mk"
|
sed -i -e "s/sepolicy_major_vers := .*/sepolicy_major_vers := ${FINAL_PLATFORM_SDK_VERSION}/g" "$top/build/make/core/config.mk"
|
||||||
cp "$top/build/make/target/product/gsi/current.txt" "$top/build/make/target/product/gsi/$FINAL_PLATFORM_SDK_VERSION.txt"
|
cp "$top/build/make/target/product/gsi/current.txt" "$top/build/make/target/product/gsi/$FINAL_PLATFORM_SDK_VERSION.txt"
|
||||||
|
|
||||||
# build/soong
|
# build/bazel
|
||||||
local codename_version="\"${FINAL_PLATFORM_CODENAME}\": ${FINAL_PLATFORM_SDK_VERSION}"
|
local codename_version="\"${FINAL_PLATFORM_CODENAME}\": ${FINAL_PLATFORM_SDK_VERSION}"
|
||||||
if ! grep -q "$codename_version" "$top/build/soong/android/api_levels.go" ; then
|
if ! grep -q "$codename_version" "$top/build/bazel/rules/common/api_constants.bzl" ; then
|
||||||
sed -i -e "/:.*$((${FINAL_PLATFORM_SDK_VERSION}-1)),/a \\\t\t$codename_version," "$top/build/soong/android/api_levels.go"
|
sed -i -e "/:.*$((${FINAL_PLATFORM_SDK_VERSION}-1)),/a \\ $codename_version," "$top/build/bazel/rules/common/api_constants.bzl"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# cts
|
# cts
|
||||||
|
Reference in New Issue
Block a user