Vendor dependencies and resources for standalone builds

Keep official openpilot ancestry and dependency licenses. Store resources directly in Git, remove LFS setup requirements, and leave the downloadable big model outside the source tree.
This commit is contained in:
firestar5683
2026-10-02 22:49:52 -05:00
parent ec95db3f1f
commit 22a8575199
2635 changed files with 817345 additions and 414 deletions
+8 -2
View File
@@ -9,6 +9,7 @@ from watchdog.events import FileSystemEventHandler
from watchdog.observers import Observer
from openpilot.common.basedir import BASEDIR
from openpilot.common.vendor_manifest import validate_worktree
def build_rsync_cmd(args) -> list[str]:
@@ -32,8 +33,9 @@ def build_rsync_cmd(args) -> list[str]:
def git_tracked_files() -> bytes:
validate_worktree(BASEDIR)
return subprocess.check_output(
["git", "-C", BASEDIR, "ls-files", "--recurse-submodules", "-z"]
["git", "-C", BASEDIR, "-c", "submodule.recurse=false", "ls-files", "-z"]
)
@@ -65,7 +67,11 @@ def main():
print(f"[devsync] target comma@{args.ip}:{args.remote}")
def run_sync():
file_list = git_tracked_files()
try:
file_list = git_tracked_files()
except (ValueError, OSError, subprocess.CalledProcessError) as e:
print(f"[devsync] source validation failed: {e}")
return
cmd = build_rsync_cmd(args)
t0 = time.monotonic()
r = subprocess.run(cmd, input=file_list, capture_output=True)