Update riscv gcc version and usage.
This commit is contained in:
parent
3da81c5916
commit
0a00e20cfe
|
@ -36,8 +36,12 @@ sudo make install
|
|||
* Opetion1 :https://github.com/riscv-collab/riscv-gnu-toolchain.git
|
||||
|
||||
```bash
|
||||
./configure --prefix=/opt/riscv
|
||||
make linux
|
||||
sudo make clean
|
||||
./configure --prefix=/opt/riscv # build 64bit
|
||||
sudo make -j12
|
||||
sudo make clean
|
||||
./configure --prefix=/opt/riscv --with-arch=rv32gc --with-abi=ilp32d
|
||||
sudo make -j12
|
||||
```
|
||||
|
||||
* Opetion2 :
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
export RV_ROOT = ${PWD}/../..
|
||||
GCC_PREFIX = /opt/riscv/bin/riscv32-unknown-elf
|
||||
GDB_PREFIX = /opt/riscv/bin/riscv32-unknown-elf-gdb
|
||||
GCC_PREFIX = /opt/riscv/bin/riscv64-unknown-elf
|
||||
GDB_PREFIX = /opt/riscv/bin/riscv64-unknown-elf-gdb
|
||||
|
||||
|
||||
TEST_CFLAGS = -g -O3 -funroll-all-loops
|
||||
|
|
Loading…
Reference in New Issue