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 |
Inseob Kim | 9d5066b | 2024-01-19 21:28:09 +0900 | [diff] [blame] | 10 | |
| 11 | # system/sepolicy |
| 12 | system/sepolicy/tools/finalize-vintf-resources.sh "$top" "$FINAL_BOARD_API_LEVEL" |
Steven Moreland | 0f84e4b | 2023-12-16 02:51:26 +0000 | [diff] [blame] | 13 | |
Devin Moore | 56f8a77 | 2024-02-02 01:06:45 +0000 | [diff] [blame^] | 14 | create_new_compat_matrix_and_kernel_configs |
Devin Moore | a1339af | 2024-01-11 23:51:22 +0000 | [diff] [blame] | 15 | |
Steven Moreland | 0f84e4b | 2023-12-16 02:51:26 +0000 | [diff] [blame] | 16 | # pre-finalization build target (trunk) |
Justin Yun | 7c28c23 | 2024-01-31 16:56:10 +0900 | [diff] [blame] | 17 | local aidl_m="$top/build/soong/soong_ui.bash --make-mode TARGET_PRODUCT=aosp_arm64 TARGET_RELEASE=fina_0 TARGET_BUILD_VARIANT=userdebug DIST_DIR=out/dist" |
Steven Moreland | 0f84e4b | 2023-12-16 02:51:26 +0000 | [diff] [blame] | 18 | AIDL_TRANSITIVE_FREEZE=true $aidl_m aidl-freeze-api |
Steven Moreland | 0f84e4b | 2023-12-16 02:51:26 +0000 | [diff] [blame] | 19 | } |
| 20 | |
Devin Moore | 56f8a77 | 2024-02-02 01:06:45 +0000 | [diff] [blame^] | 21 | function create_new_compat_matrix_and_kernel_configs() { |
Devin Moore | a1339af | 2024-01-11 23:51:22 +0000 | [diff] [blame] | 22 | # The compatibility matrix versions are bumped during vFRC |
| 23 | # These will change every time we have a new vFRC |
Devin Moore | 56f8a77 | 2024-02-02 01:06:45 +0000 | [diff] [blame^] | 24 | local CURRENT_COMPATIBILITY_MATRIX_LEVEL='202404' |
| 25 | local NEXT_COMPATIBILITY_MATRIX_LEVEL='202504' |
| 26 | # The kernel configs need the letter of the Android release |
| 27 | local CURRENT_RELEASE_LETTER='v' |
| 28 | local NEXT_RELEASE_LETTER='w' |
Devin Moore | a1339af | 2024-01-11 23:51:22 +0000 | [diff] [blame] | 29 | |
| 30 | # build the targets required before touching the Android.bp/Android.mk files |
Justin Yun | 7c28c23 | 2024-01-31 16:56:10 +0900 | [diff] [blame] | 31 | local build_cmd="$top/build/soong/soong_ui.bash --make-mode TARGET_PRODUCT=aosp_arm64 TARGET_RELEASE=fina_0 TARGET_BUILD_VARIANT=userdebug DIST_DIR=out/dist" |
Devin Moore | a1339af | 2024-01-11 23:51:22 +0000 | [diff] [blame] | 32 | $build_cmd bpmodify |
Devin Moore | a1339af | 2024-01-11 23:51:22 +0000 | [diff] [blame] | 33 | |
Devin Moore | 56f8a77 | 2024-02-02 01:06:45 +0000 | [diff] [blame^] | 34 | ANDROID_BUILD_TOP="$top" PATH="$PATH:$top/out/host/linux-x86/bin/" "$top/prebuilts/build-tools/path/linux-x86/python3" "$top/hardware/interfaces/compatibility_matrices/bump.py" "$CURRENT_COMPATIBILITY_MATRIX_LEVEL" "$NEXT_COMPATIBILITY_MATRIX_LEVEL" "$CURRENT_RELEASE_LETTER" "$NEXT_RELEASE_LETTER" |
Devin Moore | a1339af | 2024-01-11 23:51:22 +0000 | [diff] [blame] | 35 | } |
| 36 | |
Steven Moreland | 0f84e4b | 2023-12-16 02:51:26 +0000 | [diff] [blame] | 37 | finalize_vintf_resources |
| 38 | |