Files
chromebox_10th_audio_driver/docs/meta/PREFLIGHT_NOTES.md
2026-04-05 13:24:31 +08:00

21 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 双树预检:失败含义与补树入口
**体例**[DOCUMENTATION_STYLE.md](DOCUMENTATION_STYLE.md)。对应脚本:**[`scripts/preflight-chromeos-ubuntu-diff.sh`](../../scripts/preflight-chromeos-ubuntu-diff.sh)**(环境变量 **`CH`**、**`UB`** 可覆盖默认路径)。
## 默认路径
| 变量 | 默认 | 检查 |
|------|------|------|
| `CH` | `$REPO_ROOT/chromiumos_kernel/v5.15` | 需存在 **`$CH/sound/soc`** |
| `UB` | `$REPO_ROOT/kernel-src/linux-hwe-6.17-6.17.0` | 需存在 **`$UB/sound/soc`** |
## 预检失败时如何补
| 脚本输出(摘要) | 含义 | 下一步 |
|------------------|------|--------|
| `缺少 ChromiumOS 树: .../chromiumos_kernel/v5.15/sound/soc` | 未克隆或未 sparse 出 `sound/soc` | [WORK_PROGRESS.md](WORK_PROGRESS.md) **§ 二**(克隆示例) |
| `缺少 Ubuntu 源码树: .../kernel-src/.../sound/soc` | 未 `apt source` 或路径不对 | [kernel-src/README.md](../../kernel-src/README.md) |
| 两者皆缺 | 双树均未就绪 | 按上表分两行各补 |
预检通过后,脚本会调用 **`diff-chromeos-ubuntu-sound.sh`** 与 **`export-chromeos-ubuntu-sound-file-diffs.sh`**;产出与 `WORK_PROGRESS` **§ 六** 说明一致。