How to Setup the Linux Environment to use the GCC toolchain

Add the following lines at the end of your .bashrc file

 

 

# source this file
echo "Setting up RISC-V environment..."


# Variables for RISC-V

cd /opt/riscv
export TOP=$PWD
export RISCV=$TOP
export PATH=$PATH:$RISCV/bin