Files
retroSoC/app/ports/rtthread/SConstruct
T
maksyuki 0e36b6a82f feat: introduce RV64 support and related tooling for HP workloads
- 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.
2026-09-26 15:47:26 +08:00

21 lines
803 B
Python

import os
import sys
import rtconfig
RTT_ROOT = os.environ['RTT_ROOT']
sys.path.insert(0, os.path.join(RTT_ROOT, 'tools'))
from building import PrepareBuilding, DoBuilding
DefaultEnvironment(tools=[])
env = Environment(tools=['gcc', 'g++', 'gnulink', 'ar', 'gas'],
CC=rtconfig.CC, CXX=rtconfig.CXX, AS=rtconfig.AS, AR=rtconfig.AR,
LINK=rtconfig.LINK, CFLAGS=rtconfig.CFLAGS, ASFLAGS=rtconfig.AFLAGS,
LINKFLAGS=rtconfig.LFLAGS, LIBS=['gcc'])
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
env.Append(CPPPATH=[Dir('.').abspath,
os.path.join(os.environ['RETROSOC_ROOT'], 'app/apps/hp_boot')])
env['ASCOM'] = env['ASPPCOM']
Export('RTT_ROOT', 'rtconfig')
objects = PrepareBuilding(env, RTT_ROOT)
DoBuilding('rtthread.elf', objects)