diff --git a/docs/develop/build.md b/docs/develop/build.md index 23de241..12b99b5 100644 --- a/docs/develop/build.md +++ b/docs/develop/build.md @@ -92,6 +92,23 @@ foreach ($s in $series) { | gfxstream | `51288846bdcb9054d899ffc8458d6744d6206e32` | | Crashpad | `0a3c056231f5257034514ae8d83192de388351f0` | +也可以不回放,直接取打好补丁的仓库 [ModAVDQemu](https://github.com/ModAVD/ModAVDQemu)、[ModAVDGfxstream](https://github.com/ModAVD/ModAVDGfxstream)、[ModAVDCrashpad](https://github.com/ModAVD/ModAVDCrashpad) 的 tag `v0.36.0`,源码树就是上表这几个: + +```powershell +$tags = @( + @{ Repo = 'external/qemu'; Url = 'https://github.com/ModAVD/ModAVDQemu.git' }, + @{ Repo = 'hardware/google/gfxstream'; Url = 'https://github.com/ModAVD/ModAVDGfxstream.git' }, + @{ Repo = 'external/crashpad'; Url = 'https://github.com/ModAVD/ModAVDCrashpad.git' } +) +foreach ($t in $tags) { + $repo = Join-Path $src $t.Repo + git -C $repo fetch $t.Url v0.36.0 + if ($LASTEXITCODE) { throw "fetch failed: $($t.Repo)" } + git -C $repo switch -c modavd-mas36 FETCH_HEAD + if ($LASTEXITCODE) { throw "branch failed: $($t.Repo)" } +} +``` + 其余项目仍应处于目标清单记录的 revision。 ## 构建 diff --git a/docs/develop/emulator.md b/docs/develop/emulator.md index 4609381..b1120c8 100644 --- a/docs/develop/emulator.md +++ b/docs/develop/emulator.md @@ -26,6 +26,8 @@ 1. 先开 issue,写清要改什么、为什么。 2. 拿源码:在 ModAVD 仓库目录里运行 `python scripts/checks.py patches --work <一个还不存在的目录>`。它从 android.googlesource.com 浅取 AOSP 基准,回放 `patches/` 里当前版本的补丁,每条补丁系列生成一个仓库,如 `qemu-mas36`。 + + 也可以直接克隆打好补丁的仓库 [ModAVDQemu](https://github.com/ModAVD/ModAVDQemu)、[ModAVDGfxstream](https://github.com/ModAVD/ModAVDGfxstream)、[ModAVDCrashpad](https://github.com/ModAVD/ModAVDCrashpad),当前版本在 `release/0.36` 分支,源码树和回放出来的一样,比如 `git clone -b release/0.36 https://github.com/ModAVD/ModAVDQemu.git`。完整历史约 400 MB,只要最近的提交可以加 `--depth 100`。 3. 进要改的仓库,**先把提交身份改成你自己的**,因为脚本给这几个仓库设的是维护者的身份: ```