更新源码
This commit is contained in:
23
scripts/preflight-chromeos-ubuntu-diff.sh
Executable file
23
scripts/preflight-chromeos-ubuntu-diff.sh
Executable 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."
|
||||
Reference in New Issue
Block a user