blob: d150db3d16752fd885cbd0cac5101a5699830d7f [file] [log] [blame]
Steven Moreland0f84e4b2023-12-16 02:51:26 +00001#!/bin/bash
2
3set -ex
4
5function finalize_vintf_resources() {
6 local top="$(dirname "$0")"/../../../..
7 source $top/build/make/tools/finalization/environment.sh
8
9 # TODO(b/314010764): finalize LL_NDK
10 # TODO(b/314010177): finalize SELinux
11
12 # pre-finalization build target (trunk)
13 local aidl_m="$top/build/soong/soong_ui.bash --make-mode TARGET_PRODUCT=aosp_arm64 TARGET_RELEASE=trunk TARGET_BUILD_VARIANT=userdebug DIST_DIR=out/dist"
14 AIDL_TRANSITIVE_FREEZE=true $aidl_m aidl-freeze-api
15
16 # build/make
17 sed -i -e "s/sepolicy_major_vers := .*/sepolicy_major_vers := ${FINAL_PLATFORM_SDK_VERSION}/g" "$top/build/make/core/config.mk"
18 cp "$top/build/make/target/product/gsi/current.txt" "$top/build/make/target/product/gsi/$FINAL_PLATFORM_SDK_VERSION.txt"
19}
20
21finalize_vintf_resources
22