每轮只推进合理适量的上下文、禁止顺手扩功能 smoke:补充gantry运动学源清单

结论:第2组 kinematics manifest 补充 LinuxCNC gantry_mm 配置、HAL、tool table、README,以及 gantry HAL component 源/生成源/元数据,并在轻量 manifest 校验中固定这些 source coverage;native/source-link 均复用增量构建,没有触发慢编译。
This commit is contained in:
cnc
2026-06-01 21:08:21 +08:00
parent 8387f48130
commit f98aa9ebb1
3 changed files with 71 additions and 3 deletions

View File

@@ -714,6 +714,54 @@ if [[ -n "$manifest" && "$require_complete" == "--require-kinematics-complete" ]
exit 1
fi
required_gantry_asset_sources=(
configs/sim/axis/gantry/gantry_mm.ini
configs/sim/axis/gantry/gantry_mm.hal
configs/sim/axis/gantry/gantry_mm.tbl
configs/sim/axis/gantry/README
)
missing_gantry_asset_sources=()
for source in "${required_gantry_asset_sources[@]}"; do
if ! printf '%s\n' "${manifest_asset_sources[@]}" | grep -Fx -- "$source" >/dev/null; then
missing_gantry_asset_sources+=("$source")
fi
done
if ((${#missing_gantry_asset_sources[@]} > 0)); then
echo "manifest does not cover LinuxCNC gantry metric INI/HAL/tool sources as asset sources: $manifest" >&2
printf 'missing gantry metric asset source: %s\n' "${missing_gantry_asset_sources[@]}" >&2
exit 1
fi
required_gantry_component_source=src/hal/components/gantry.comp
if ! printf '%s\n' "${manifest_component_sources[@]}" | grep -Fx -- "$required_gantry_component_source" >/dev/null; then
echo "manifest does not cover LinuxCNC gantry HAL component source: $manifest" >&2
printf 'missing gantry component source: %s\n' "$required_gantry_component_source" >&2
exit 1
fi
required_gantry_generated_source=src/objects/hal/components/gantry.c
if ! printf '%s\n' "${manifest_generated_sources[@]}" | grep -Fx -- "$required_gantry_generated_source" >/dev/null; then
echo "manifest does not cover LinuxCNC generated gantry HAL component source: $manifest" >&2
printf 'missing generated gantry component source: %s\n' "$required_gantry_generated_source" >&2
exit 1
fi
required_gantry_metadata_sources=(
src/objects/hal/components/gantry.mak
src/objects/man/man9/gantry.9.adoc
)
missing_gantry_metadata_sources=()
for source in "${required_gantry_metadata_sources[@]}"; do
if ! printf '%s\n' "${manifest_metadata_sources[@]}" | grep -Fx -- "$source" >/dev/null; then
missing_gantry_metadata_sources+=("$source")
fi
done
if ((${#missing_gantry_metadata_sources[@]} > 0)); then
echo "manifest does not cover LinuxCNC gantry HAL component metadata sources: $manifest" >&2
printf 'missing gantry metadata source: %s\n' "${missing_gantry_metadata_sources[@]}" >&2
exit 1
fi
resolve_vismach_loadusr_source() {
local command_name=$1
case "$command_name" in