继续把 interp_execute.cc、interp_queue.cc、interp_find.cc 等 LinuxCNC 源文件纳入直接编译/链接路径,逐步删除临时 convert_g() wrapper 行为
结论:已将核心 LinuxCNC interpreter 源接入 standalone native 编译链接路径,移除 minimal runtime 中的手写 convert_g 行为,并通过 native probe 验证。
This commit is contained in:
35
wasm-port/tools/extract_sources.sh
Executable file
35
wasm-port/tools/extract_sources.sh
Executable file
@@ -0,0 +1,35 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
UPSTREAM_DIR="$ROOT_DIR/../linuxcnc"
|
||||
VENDOR_DIR="$ROOT_DIR/vendor/linuxcnc"
|
||||
MANIFEST_FILE="$ROOT_DIR/tools/source-manifest.txt"
|
||||
|
||||
copy_file() {
|
||||
local src_rel="$1"
|
||||
local src="$UPSTREAM_DIR/$src_rel"
|
||||
local dst="$VENDOR_DIR/$src_rel"
|
||||
|
||||
if [[ ! -f "$src" ]]; then
|
||||
echo "missing upstream file: $src" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p "$(dirname "$dst")"
|
||||
cp "$src" "$dst"
|
||||
echo "copied $src_rel"
|
||||
}
|
||||
|
||||
if [[ ! -f "$MANIFEST_FILE" ]]; then
|
||||
echo "missing manifest: $MANIFEST_FILE" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
while IFS= read -r src_rel; do
|
||||
[[ -z "$src_rel" ]] && continue
|
||||
[[ "${src_rel:0:1}" == "#" ]] && continue
|
||||
copy_file "$src_rel"
|
||||
done < "$MANIFEST_FILE"
|
||||
|
||||
echo "extraction complete"
|
||||
Reference in New Issue
Block a user