mirror of
https://github.com/retroSoC/retroSoC.git
synced 2026-11-04 22:32:36 +00:00
feat: implement setup helpers and refactor setup script
- Added to manage Git repository dependencies and file downloads. - Refactored to utilize the new helper functions for cloning the MPW generator. - Enhanced OpenSTA Makefile to validate input files and configurations before execution. - Updated OpenSTA TCL script to use environment variables for file paths. - Refactored source export script to improve file handling and path resolution. - Added tests for atomic writing, filelist parsing, and dependency management. - Improved Yosys synthesis scripts to include configuration recording.
This commit is contained in:
35 files changed
+1792
-771
No files matched your search
@@ -1,8 +1,27 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
import os
|
||||
import argparse
|
||||
from pathlib import Path
|
||||
|
||||
project_path = os.getcwd()
|
||||
os.chdir(project_path)
|
||||
os.system("git clone https://github.com/retroSoC/mini-ver-mpw.git rtl/mini/mpw")
|
||||
from scripts.setup_helpers import ensure_git_repo
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parent
|
||||
MPW_REVISION = "30503eb8a7cf33a0c955913faba5014ebd00186f"
|
||||
|
||||
|
||||
def main() -> int:
|
||||
parser = argparse.ArgumentParser(description="Install the pinned MPW generator")
|
||||
parser.add_argument("--update", action="store_true")
|
||||
args = parser.parse_args()
|
||||
ensure_git_repo(
|
||||
"https://github.com/retroSoC/mini-ver-mpw.git",
|
||||
ROOT / "rtl/mini/mpw",
|
||||
MPW_REVISION,
|
||||
update=args.update,
|
||||
)
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
Reference in new issue
Block a user