Alex Buynytskyy | afddc07 | 2023-02-09 22:40:53 +0000 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | |
| 3 | set -ex |
| 4 | |
| 5 | function finalize_locally_mainline_sdk() { |
| 6 | local top="$(dirname "$0")"/../../../.. |
| 7 | source $top/build/make/tools/finalization/environment.sh |
| 8 | |
| 9 | # Build modules SDKs. |
| 10 | TARGET_BUILD_VARIANT=userdebug UNBUNDLED_BUILD_SDKS_FROM_SOURCE=true "$top/vendor/google/build/mainline_modules_sdks.sh" |
| 11 | |
| 12 | # Update prebuilts. |
| 13 | "$top/prebuilts/build-tools/path/linux-x86/python3" "$top/packages/modules/common/tools/finalize_sdk.py" -l -b 0 -f ${FINA_MAINLINE_EXTENSION} -r '' 0 |
| 14 | } |
| 15 | |
| 16 | finalize_locally_mainline_sdk |
| 17 | |