Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/develop/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -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。

## 构建
Expand Down
2 changes: 2 additions & 0 deletions docs/develop/emulator.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. 进要改的仓库,**先把提交身份改成你自己的**,因为脚本给这几个仓库设的是维护者的身份:

```
Expand Down