add correct riscv toolchain. Build takes forever so I'll probably add the binaries later

This commit is contained in:
Brendan Haines 2022-11-19 18:40:37 -07:00
parent c1ec8520be
commit 8055444b99
5 changed files with 15 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
build/ build/
toolchain/
*.~lock* *.~lock*

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "riscv-gnu-toolchain"]
path = riscv-gnu-toolchain
url = https://github.com/riscv-collab/riscv-gnu-toolchain.git

View File

@ -17,3 +17,6 @@ Desired features:
* division * division
* instruction and data caches * instruction and data caches
* JTAG debug probe * JTAG debug probe
## Installation
Run `setup.sh` to install GCC

1
riscv-gnu-toolchain Submodule

@ -0,0 +1 @@
Subproject commit 96d9f40c9d5649089031c476cf37728013212288

7
setup.sh Executable file
View File

@ -0,0 +1,7 @@
sudo apt-get install -y autoconf automake autotools-dev curl python3 libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev
SCRIPT=$(realpath "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
cd $SCRIPTPATH/riscv-gnu-toolchain
./configure --prefix=$SCRIPTPATH/toolchain/riscv --enable-multilib
make