mirror of
https://gitlab.com/brendanhaines/cpu.git
synced 2024-12-25 18:46:53 -07:00
add correct riscv toolchain. Build takes forever so I'll probably add the binaries later
This commit is contained in:
parent
c1ec8520be
commit
8055444b99
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
build/
|
build/
|
||||||
|
toolchain/
|
||||||
*.~lock*
|
*.~lock*
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "riscv-gnu-toolchain"]
|
||||||
|
path = riscv-gnu-toolchain
|
||||||
|
url = https://github.com/riscv-collab/riscv-gnu-toolchain.git
|
|
@ -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
1
riscv-gnu-toolchain
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 96d9f40c9d5649089031c476cf37728013212288
|
7
setup.sh
Executable file
7
setup.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user