sync: WIN10-I9-64G 2026-07-20

This commit is contained in:
Myfro9
2026-07-20 18:26:14 +08:00
parent 05c78c1cee
commit 1334ad4a64
6 changed files with 40 additions and 14 deletions
+28 -2
View File
@@ -25,19 +25,45 @@ touch the relays; that sequencing lives in the vivado-mcp tools.
import argparse
import hashlib
import os
import re
import subprocess
import sys
import tarfile
import tempfile
def _env_lookup(key, default=None):
"""Machine-local values (paths, IPs, credentials) live in ~/skills_env.md, never in git.
An OS environment variable of the same name overrides the file."""
v = os.environ.get(key)
if v:
return v
path = os.path.join(os.path.expanduser("~"), "skills_env.md")
try:
with open(path, encoding="utf-8") as f:
for line in f:
m = re.match(rf"\s*{key}\s*=\s*(\S+)", line)
if m:
return m.group(1)
except OSError:
pass
if default is None:
sys.exit(f"missing {key}: add it to ~/skills_env.md or set it as an env var")
return default
REPO = r"E:\Xilinx_design\smod\SMOD_ATSC\my_exciter"
APP_SUBDIR = "imx6/src/atsc_app"
VM_HOST, VM_USER, VM_PASS = "192.168.223.128", "bowei", "lr7402"
VM_HOST = _env_lookup("CROSS_VM_HOST", "192.168.223.128")
VM_USER = _env_lookup("CROSS_VM_USER", "bowei")
VM_PASS = _env_lookup("CROSS_VM_PASS")
VM_BUILD_DIR = "atsc_head_build" # relative to the VM home dir
TOOLCHAIN = "/opt/fsl-imx-x11/4.1.15-2.0.0/environment-setup-cortexa7hf-neon-poky-linux-gnueabi"
IMX_HOST, IMX_USER, IMX_PASS = "192.168.1.143", "root", "anywavecom"
IMX_HOST = _env_lookup("SMOD_BOARD_IP", "192.168.1.143")
IMX_USER = _env_lookup("SMOD_SSH_USER", "root")
IMX_PASS = _env_lookup("SMOD_SSH_PASS")
IMX_APP_DIR = "/aw/anywave/app"
IMX_STAGING = f"{IMX_APP_DIR}/imx_atsc_app_head"
IMX_ACTIVE = f"{IMX_APP_DIR}/imx_atsc_app"