Files
chromebox_10th_audio_driver/scripts/linux-hdmi-followup-workflow.sh
2026-04-04 18:13:40 +08:00

31 lines
1.4 KiB
Bash
Executable File
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.
#!/usr/bin/env bash
# 0001 或用户态基线之后仍无声时:深度 diff / 上游复现 的入口(对应计划 todo「if-still-broken」
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}"
echo "=== 文档(按顺序)==="
echo " $REPO_ROOT/docs/kernel-build/OPERATION_ChromeOS_Kernel_Deep_Diff.md"
echo " $REPO_ROOT/patches/ubuntu-hwe-6.17/STREAM_PCM_PARAMS_CHROME_UBUNTU_NOTES.md"
echo " $REPO_ROOT/patches/ubuntu-hwe-6.17/DIFF_SUMMARY.txt"
echo " $REPO_ROOT/docs/linux-hdmi/UPSTREAM_SOF_Kaisa_HDMI_REPRO.md"
echo ""
echo "=== 导出 ChromeOS vs 6.17 关键文件 diff需两棵完整树==="
if [[ -d "$CH/sound/soc" ]]; then
"$REPO_ROOT/scripts/export-chromeos-ubuntu-sound-file-diffs.sh" || true
else
echo "跳过: 未找到 ChromiumOS 5.15 树 CH=$CH"
echo "克隆说明见: $REPO_ROOT/docs/meta/WORK_PROGRESS.md"
fi
echo ""
UB="$REPO_ROOT/kernel-src/linux-hwe-6.17-6.17.0"
echo "=== 音频子树差异统计(需 CH + $UB/sound/soc==="
if [[ ! -d "$UB/sound/soc" ]]; then
echo "跳过: Ubuntu 树无 sound/soc请准备 kernel-src"
elif [[ ! -d "$CH/sound/soc" ]]; then
echo "跳过: 无 ChromiumOS 树 $CH/sound/soc见 WORK_PROGRESS.md"
else
CH="$CH" UB="$UB" "$REPO_ROOT/scripts/diff-chromeos-ubuntu-sound.sh"
fi