Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed37595a authored by Jihoon Kang's avatar Jihoon Kang
Browse files

Update sdk finalizer to change soong instead of bazel

Update the map in soong instead of that in bazel

Bug: 315353489
Test: manual
Merged-In: I3a51be1119109d2a6cf3959bdc8a48192872580f
Change-Id: Ia61a17be4a7d85c00d2e9758ea2409019d451dfd
parent f8e79f11
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -133,10 +133,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"
    cp "$top/build/make/target/product/gsi/current.txt" "$top/build/make/target/product/gsi/$FINAL_PLATFORM_SDK_VERSION.txt"

    # build/bazel
    # build/soong
    local codename_version="\"${FINAL_PLATFORM_CODENAME}\": ${FINAL_PLATFORM_SDK_VERSION}"
    if ! grep -q "$codename_version" "$top/build/bazel/rules/common/api_constants.bzl" ; then
        sed -i -e "/:.*$((${FINAL_PLATFORM_SDK_VERSION}-1)),/a \\    $codename_version," "$top/build/bazel/rules/common/api_constants.bzl"
    if ! grep -q "$codename_version" "$top/build/soong/android/api_levels.go" ; then
        sed -i -e "/:.*$((${FINAL_PLATFORM_SDK_VERSION}-1)),/a \\\t\t$codename_version," "$top/build/soong/android/api_levels.go"
    fi

    # cts