From ff62bde45504b9cccbc6505749e4dc425d540bf7 Mon Sep 17 00:00:00 2001 From: qiyinxi Date: Sun, 1 Nov 2026 23:17:27 +0100 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91=E6=96=87=E6=A1=A3=EF=BC=9A?= =?UTF-8?q?=E6=A8=A1=E6=8B=9F=E5=99=A8=E6=9C=AC=E4=BD=93=E5=92=8C=E4=BB=8E?= =?UTF-8?q?=E6=BA=90=E7=A0=81=E6=9E=84=E5=BB=BA=E5=8A=A0=E4=B8=8A=E6=89=93?= =?UTF-8?q?=E5=A5=BD=E8=A1=A5=E4=B8=81=E7=9A=84=E6=BA=90=E7=A0=81=E4=BB=93?= =?UTF-8?q?=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/develop/build.md | 17 +++++++++++++++++ docs/develop/emulator.md | 2 ++ 2 files changed, 19 insertions(+) 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. 进要改的仓库,**先把提交身份改成你自己的**,因为脚本给这几个仓库设的是维护者的身份: ```