diff options
author | Martin Stjernholm <mast@google.com> | 2024-02-09 20:12:47 +0000 |
---|---|---|
committer | Martin Stjernholm <mast@google.com> | 2024-02-22 17:41:41 +0000 |
commit | 044d03ec811089e02e4a01b9ed9d0ea19dbdbf90 (patch) | |
tree | 62249d200ffcfb808b1b91a61c24c1c00f699d27 | |
parent | e59e9549ebc6f3f4115a4f5bab73702d8ca5fddf (diff) | |
download | runtime-044d03ec811089e02e4a01b9ed9d0ea19dbdbf90.tar.gz |
Make the instructions more efficient.
Especially when retrying steps in incremental builds, e.g. the
`banchan` command sets up `TARGET_BUILD_APPS` for the SDK build later.
Test: Try instructions and produce https://r.android.com/2955537
Bug: 323555083
Bug: 286551985
Change-Id: Ie8270fa24a9c5327730aa8170cdae65293e23381
-rw-r--r-- | mainline/README_riscv64.md | 77 |
1 files changed, 36 insertions, 41 deletions
diff --git a/mainline/README_riscv64.md b/mainline/README_riscv64.md index 62316ed9..37080b71 100644 --- a/mainline/README_riscv64.md +++ b/mainline/README_riscv64.md @@ -19,51 +19,46 @@ To update: 1. On aosp/main (full manifest): -- Build apexes: - ``` - $ banchan \ - com.android.runtime \ - com.android.tzdata \ - com.android.os.statsd \ - com.android.conscrypt \ - com.android.i18n \ - riscv64 \ - && DIST_DIR=out/dist/mainline_modules_riscv64 m dist - ``` + 1. Cherry pick https://r.android.com/2647900 (this is necessary for the SDK + build in step 4). -- Build implementation libs: - ``` - $ lunch aosp_riscv64-trunk_staging-userdebug - $ m dist - ``` + 2. Build implementation libs: + ``` + $ lunch aosp_riscv64-trunk_staging-userdebug + $ m dist + ``` -- Build module SDKs: + 3. Build apexes: + ``` + $ banchan \ + com.android.runtime \ + com.android.tzdata \ + com.android.os.statsd \ + com.android.conscrypt \ + com.android.i18n \ + riscv64 + $ m DIST_DIR=out/dist/mainline_modules_riscv64 dist + ``` - First, cherry-pick https://r.android.com/2647900. - ``` - $ TARGET_BUILD_APPS="\ - com.android.os.statsd \ - com.android.runtime \ - com.android.i18n \ - com.android.conscrypt \ - com.android.tzdata" \ - packages/modules/common/build/mainline_modules_sdks.sh \ - --build-release latest \ - --build-platform-sdks-for-mainline - ``` + 4. Build module SDKs: + ``` + $ packages/modules/common/build/mainline_modules_sdks.sh \ + --build-release latest \ + --build-platform-sdks-for-mainline + ``` -2. On master-art branch (reduced manifest): +2. On aosp/master-art branch (reduced manifest): -- Run: - ``` - $ prebuilts/runtime/mainline/update.py \ - --local-dist-riscv64 <root-of-aosp-tree>/out/dist - ``` + 1. Run: + ``` + $ prebuilts/runtime/mainline/update.py \ + --local-dist-riscv64 <root-of-aosp-tree>/out/dist + ``` -- Manually inspect the updated Android.bp files and revert any sections not - related to riscv64 (it may be necessary to revert the entire file). Then try - to build with `lunch riscv64 && art/tools/buildbot-build.sh`, you may find - that further tweaking is needed. Make sure that the build succeeds. + 2. Manually inspect the updated Android.bp files and revert any sections not + related to riscv64 (it may be necessary to revert the entire file). Then try + to build with `lunch riscv64 && art/tools/buildbot-build.sh`, you may find + that further tweaking is needed. Make sure that the build succeeds. -- Update the commit (use `lunch riscv64 && art/tools/buildbot-build.sh` as a - validation step in commit message). Be sure to set mast@ as reviewer. + 3. Update the commit (use `lunch riscv64 && art/tools/buildbot-build.sh` as a + validation step in commit message). Be sure to set mast@ as reviewer. |