Steven Moreland | 0f84e4b | 2023-12-16 02:51:26 +0000 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | |
| 3 | set -ex |
| 4 | |
| 5 | function 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 | |
| 21 | finalize_vintf_resources |
| 22 | |