-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathr5.mk
18 lines (17 loc) · 809 Bytes
/
r5.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
R5ISA=rv32imafdc
R5ABI=ilp32d
## B Toolchain so we get some automatic B generation
R5B_TOOLCHAIN=/opt/riscv64bk/
R5B_GCC=$(R5B_TOOLCHAIN)/bin/riscv64-unknown-elf-gcc
#R5B_TOOLCHAIN=/opt/rv32bk
#R5B_GCC=$(R5B_TOOLCHAIN)/bin/riscv32-buildroot-linux-gnu-gcc
R5B_OPT=-Os -march=$(R5ISA)b -mabi=$(R5ABI) -I.
## Buildroot toolchain for linking and having up-to-date libraries and systems calls
## Requires enabling C++ in buildroot with e.g.
## # BR2_INSTALL_LIBSTDCPP=y
## # BR2_TOOLCHAIN_BUILDROOT_CXX=y
R5IMA_TOOLCHAIN=/home/dolbeau2/LITEX/buildroot-rv32/output/host
R5IMA_GCC=$(R5IMA_TOOLCHAIN)/bin/riscv32-buildroot-linux-gnu-gcc
R5IMA_GXX=$(R5IMA_TOOLCHAIN)/bin/riscv32-buildroot-linux-gnu-g++
R5IMA_OPT=-Os -march=$(R5ISA) -mabi=$(R5ABI) -I.
R5IMA_STRIP=$(R5IMA_TOOLCHAIN)/riscv32-buildroot-linux-gnu-strip