mirror of
https://github.com/retroSoC/retroSoC.git
synced 2026-11-04 22:32:36 +00:00
- Updated axi4_interconnect_tb to include an additional master and issue high-priority access tests. - Introduced hp_mailbox_tb for testing the HP mailbox functionality, including register and doorbell operations. - Added plic_tb to validate PLIC priority, claim, and completion mechanisms. - Enhanced pll_ctrl_tb to initialize additional system control signals. - Updated soc_irq_topology_tb to account for new IRQ sources and validate IRQ signal behavior. - Improved sysctrl_tb to include tests for HP lifecycle control and status registers. - Added tests for HP boot bundle layout, CRC, and payload validation. - Introduced test_hp_mailbox.py for RTL regression testing of the HP mailbox. - Added test_hp_platform.py to validate HP platform configuration and generated-source boundaries. - Enhanced test_librelane_flow.py to ensure correct signal placement in chip configuration. - Added performance log tests to validate LP and HP coremark ratios. - Updated test_soc_topology.py to reflect changes in IRQ and peripheral mappings.
62 lines
1.9 KiB
Python
62 lines
1.9 KiB
Python
#!/usr/bin/env python3
|
|
"""Install the pinned HP Linux, OpenSBI, and Buildroot source trees."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import argparse
|
|
import os
|
|
import subprocess
|
|
from pathlib import Path
|
|
|
|
from dependency_lock import source
|
|
from setup_helpers import ensure_git_repo, run
|
|
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
|
|
|
|
def repair_incomplete_checkout(
|
|
destination: Path, url: str, revision: str
|
|
) -> None:
|
|
if not (destination / ".git").is_dir():
|
|
return
|
|
result = subprocess.run(
|
|
["git", "-C", str(destination), "rev-parse", "--verify", "HEAD"],
|
|
check=False,
|
|
stdout=subprocess.DEVNULL,
|
|
stderr=subprocess.DEVNULL,
|
|
)
|
|
if result.returncode == 0:
|
|
return
|
|
run(("git", "remote", "set-url", "origin", url), cwd=destination)
|
|
run(("git", "fetch", "--depth", "1", "origin", revision), cwd=destination)
|
|
run(("git", "checkout", "--detach", "FETCH_HEAD"), cwd=destination)
|
|
|
|
|
|
def main() -> int:
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument("--update", action="store_true")
|
|
args = parser.parse_args()
|
|
# The stable Linux mirror is large enough to expose HTTP/2 proxy framing failures.
|
|
os.environ.setdefault("GIT_CONFIG_COUNT", "1")
|
|
os.environ.setdefault("GIT_CONFIG_KEY_0", "http.version")
|
|
os.environ.setdefault("GIT_CONFIG_VALUE_0", "HTTP/1.1")
|
|
for name in ("opensbi_hp", "linux_hp", "buildroot_hp"):
|
|
dependency = source(name)
|
|
destination = ROOT / dependency["destination"]
|
|
repair_incomplete_checkout(
|
|
destination, dependency["url"], dependency["revision"]
|
|
)
|
|
ensure_git_repo(
|
|
dependency["url"],
|
|
destination,
|
|
dependency["revision"],
|
|
recursive=dependency.get("recursive", False),
|
|
update=args.update,
|
|
)
|
|
return 0
|
|
|
|
|
|
if __name__ == "__main__":
|
|
raise SystemExit(main())
|