mirror of
https://github.com/retroSoC/retroSoC.git
synced 2026-11-04 22:32:36 +00:00
fix: fix the wrong gnu toolchain lib path
This commit is contained in:
1 file changed
+4
-2
@@ -228,12 +228,14 @@ def install_software_toolchain():
|
||||
try:
|
||||
# Change to temporary directory
|
||||
os.chdir(temp_dir)
|
||||
|
||||
# Clone Verilator repository
|
||||
print("Download RISCV GNU Toolchain ...")
|
||||
run_command("wget https://github.com/riscv-collab/riscv-gnu-toolchain/releases/download/2025.05.01/riscv32-elf-ubuntu-22.04-gcc-nightly-2025.05.01-nightly.tar.xz")
|
||||
run_command("tar -xvf riscv32-elf-ubuntu-22.04-gcc-nightly-2025.05.01-nightly.tar.xz")
|
||||
run_command("sudo cp -rf riscv/bin/* /usr/local/bin")
|
||||
run_command(f"echo 'export PATH=${temp_dir}/bin:$PATH' >> ~/.bashrc")
|
||||
run_command("source ~/.bashrc")
|
||||
# echo 'export LD_LIBRARY_PATH=/opt/riscv32/lib:$LD_LIBRARY_PATH' >> ~/.bashrc
|
||||
|
||||
|
||||
print("✓ software toolchain installation completed")
|
||||
return True
|
||||
|
||||
Reference in new issue
Block a user