mirror of
https://github.com/retroSoC/retroSoC.git
synced 2026-11-04 22:32:36 +00:00
- Added build_hp_rtthread.py for building the RT-Thread kernel with RV64 support. - Updated build_hp_smoke.py to target RV64 architecture and modified output filenames. - Modified generate_vexiiriscv.py to reflect RV64 configuration and memory management. - Created hp_tools.py for shared utilities related to RV64 builds. - Enhanced package_hp_boot.py to package RV64 workloads and updated versioning. - Implemented run_hp_sim.py for executing and validating HP workloads with specific markers. - Developed setup_hp_rtthread.py for installing RT-Thread source and environment setup. - Updated GenerateRetroSocHp.scala to generate RV64 application cores. - Enhanced tests for HP boot bundles, platform specifications, and tool utilities to accommodate RV64 changes. - Adjusted test cases to validate new workload types and ensure compatibility with RV64 architecture.
35 lines
1.2 KiB
Python
35 lines
1.2 KiB
Python
#!/usr/bin/env python3
|
|
"""Install the locked RT-Thread source, RV64 compiler and SCons environment."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import argparse
|
|
import venv
|
|
from pathlib import Path
|
|
|
|
from dependency_lock import load_lock
|
|
from install_toolchain import install
|
|
from setup_helpers import ensure_git_repo, run
|
|
|
|
|
|
def main() -> None:
|
|
parser = argparse.ArgumentParser(description=__doc__)
|
|
parser.add_argument("--update", action="store_true")
|
|
args = parser.parse_args()
|
|
root = Path(__file__).resolve().parents[1]
|
|
lock = load_lock()
|
|
spec = lock["sources"]["rtthread_hp"]
|
|
ensure_git_repo(spec["url"], root / spec["destination"], spec["revision"], update=args.update)
|
|
install("riscv_gnu_hp", lock["toolchains"]["ubuntu-22.04"]["riscv_gnu_hp"],
|
|
root / ".cache/retrosoc/development", args.update)
|
|
environment = root / ".cache/retrosoc/rtthread-venv"
|
|
if not (environment / "bin/python").is_file():
|
|
venv.EnvBuilder(with_pip=True).create(environment)
|
|
run((str(environment / "bin/python"), "-m", "pip", "install", "--require-hashes",
|
|
"--cache-dir", str(root / ".cache/retrosoc/pip"),
|
|
"-r", str(root / "requirements/rtthread.txt")))
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|