mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Hard-coded NUM_THREADS in tool-chain-install to make it easier to paste code
This commit is contained in:
parent
235a3dcfca
commit
e52409e916
@ -68,7 +68,7 @@ cd $RISCV
|
|||||||
git clone https://github.com/riscv/riscv-gnu-toolchain
|
git clone https://github.com/riscv/riscv-gnu-toolchain
|
||||||
cd riscv-gnu-toolchain
|
cd riscv-gnu-toolchain
|
||||||
./configure --prefix=${RISCV} --with-multilib-generator="rv32e-ilp32e--;rv32i-ilp32--;rv32im-ilp32--;rv32iac-ilp32--;rv32imac-ilp32--;rv32imafc-ilp32f--;rv32imafdc-ilp32d--;rv64i-lp64--;rv64ic-lp64--;rv64iac-lp64--;rv64imac-lp64--;rv64imafdc-lp64d--;rv64im-lp64--;"
|
./configure --prefix=${RISCV} --with-multilib-generator="rv32e-ilp32e--;rv32i-ilp32--;rv32im-ilp32--;rv32iac-ilp32--;rv32imac-ilp32--;rv32imafc-ilp32f--;rv32imafdc-ilp32d--;rv64i-lp64--;rv64ic-lp64--;rv64iac-lp64--;rv64imac-lp64--;rv64imafdc-lp64d--;rv64im-lp64--;"
|
||||||
make -j ${NUM_THREADS}
|
make -j 8
|
||||||
|
|
||||||
# elf2hex (https://github.com/sifive/elf2hex)
|
# elf2hex (https://github.com/sifive/elf2hex)
|
||||||
#The elf2hex utility to converts executable files into hexadecimal files for Verilog simulation.
|
#The elf2hex utility to converts executable files into hexadecimal files for Verilog simulation.
|
||||||
@ -92,7 +92,7 @@ cd $RISCV
|
|||||||
git clone --recurse-submodules https://github.com/qemu/qemu
|
git clone --recurse-submodules https://github.com/qemu/qemu
|
||||||
cd qemu
|
cd qemu
|
||||||
./configure --target-list=riscv64-softmmu --prefix=$RISCV
|
./configure --target-list=riscv64-softmmu --prefix=$RISCV
|
||||||
make -j ${NUM_THREADS}
|
make -j 8
|
||||||
make install
|
make install
|
||||||
|
|
||||||
# Spike (https://github.com/riscv-software-src/riscv-isa-sim)
|
# Spike (https://github.com/riscv-software-src/riscv-isa-sim)
|
||||||
@ -103,7 +103,7 @@ git clone https://github.com/riscv-software-src/riscv-isa-sim
|
|||||||
mkdir -p riscv-isa-sim/build
|
mkdir -p riscv-isa-sim/build
|
||||||
cd riscv-isa-sim/build
|
cd riscv-isa-sim/build
|
||||||
../configure --prefix=$RISCV
|
../configure --prefix=$RISCV
|
||||||
make -j ${NUM_THREADS}
|
make -j 8
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
|
||||||
@ -121,7 +121,7 @@ git pull # Make sure git repository is up-to-date
|
|||||||
git checkout master
|
git checkout master
|
||||||
autoconf # Create ./configure script
|
autoconf # Create ./configure script
|
||||||
./configure # Configure and create Makefile
|
./configure # Configure and create Makefile
|
||||||
make -j ${NUM_THREADS} # Build Verilator itself (if error, try just 'make')
|
make -j 8 # Build Verilator itself (if error, try just 'make')
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
# Sail (https://github.com/riscv/sail-riscv)
|
# Sail (https://github.com/riscv/sail-riscv)
|
||||||
@ -158,7 +158,7 @@ sudo make install
|
|||||||
#cd z3
|
#cd z3
|
||||||
#python scripts/mk_make.py
|
#python scripts/mk_make.py
|
||||||
#cd build
|
#cd build
|
||||||
#make -j ${NUM_THREADS}
|
#make -j 8
|
||||||
#make install
|
#make install
|
||||||
#cd ../..
|
#cd ../..
|
||||||
#pip3 install chardet==3.0.4
|
#pip3 install chardet==3.0.4
|
||||||
@ -177,11 +177,8 @@ cd sail-riscv
|
|||||||
# For now, use checkout that is stable for Wally
|
# For now, use checkout that is stable for Wally
|
||||||
#git checkout 72b2516d10d472ac77482fd959a9401ce3487f60 # not new enough for Zicboz?
|
#git checkout 72b2516d10d472ac77482fd959a9401ce3487f60 # not new enough for Zicboz?
|
||||||
export OPAMCLI=2.0 # Sail is not compatible with opam 2.1 as of 4/16/24
|
export OPAMCLI=2.0 # Sail is not compatible with opam 2.1 as of 4/16/24
|
||||||
# It is faster to just build c_emulator/riscv_sim_RV* than to build all of Sail
|
ARCH=RV64 make -j 8 c_emulator/riscv_sim_RV64
|
||||||
#make -j ${NUM_THREADS}
|
ARCH=RV32 make -j 8 c_emulator/riscv_sim_RV32
|
||||||
#ARCH=RV32 make -j ${NUM_THREADS}
|
|
||||||
make -j ${NUM_THREADS} c_emulator/riscv_sim_RV64
|
|
||||||
ARCH=RV32 make -j ${NUM_THREADS} c_emulator/riscv_sim_RV32
|
|
||||||
sudo ln -sf $RISCV/sail-riscv/c_emulator/riscv_sim_RV64 /usr/bin/riscv_sim_RV64
|
sudo ln -sf $RISCV/sail-riscv/c_emulator/riscv_sim_RV64 /usr/bin/riscv_sim_RV64
|
||||||
sudo ln -sf $RISCV/sail-riscv/c_emulator/riscv_sim_RV32 /usr/bin/riscv_sim_RV32
|
sudo ln -sf $RISCV/sail-riscv/c_emulator/riscv_sim_RV32 /usr/bin/riscv_sim_RV32
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user