更新源码

This commit is contained in:
2026-04-04 18:13:40 +08:00
parent 2e20b8e2c5
commit beed35ec13
31 changed files with 1632 additions and 209 deletions

View File

@@ -0,0 +1,23 @@
#!/usr/bin/env bash
# 预检 ChromiumOS 5.15 与 Ubuntu HWE 6.17 两棵树是否存在,存在则运行 diff + export。
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
CH="${CH:-$REPO_ROOT/chromiumos_kernel/v5.15}"
UB="${UB:-$REPO_ROOT/kernel-src/linux-hwe-6.17-6.17.0}"
ok=1
if [[ ! -d "$CH/sound/soc" ]]; then
echo "缺少 ChromiumOS 树: $CH/sound/soc — 见 docs/meta/WORK_PROGRESS.md 第二节"
ok=0
fi
if [[ ! -d "$UB/sound/soc" ]]; then
echo "缺少 Ubuntu 源码树: $UB/sound/soc — 见 kernel-src/README.md"
ok=0
fi
if [[ "$ok" -ne 1 ]]; then
echo "预检失败。补全后重跑: $0"
exit 1
fi
CH="$CH" UB="$UB" "$REPO_ROOT/scripts/diff-chromeos-ubuntu-sound.sh"
CH="$CH" UB="$UB" "$REPO_ROOT/scripts/export-chromeos-ubuntu-sound-file-diffs.sh"
echo "OK."