summaryrefslogtreecommitdiff
path: root/code/ecp
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2019-11-24 18:26:05 +0100
committerUros Majstorovic <majstor@majstor.org>2019-11-24 18:26:05 +0100
commitc5158873c583eb668f782d4fa7d5cbf86254c11a (patch)
tree2bf02c54c8688a8c34b3c8cae4f477ef436f851b /code/ecp
parent22a79e03a60bed3df7ba24015564c4b48bb811cb (diff)
fixed build for fe310
Diffstat (limited to 'code/ecp')
-rw-r--r--code/ecp/Makefile.fe3108
1 files changed, 2 insertions, 6 deletions
diff --git a/code/ecp/Makefile.fe310 b/code/ecp/Makefile.fe310
index 23938a8..f921f33 100644
--- a/code/ecp/Makefile.fe310
+++ b/code/ecp/Makefile.fe310
@@ -4,9 +4,5 @@ htable=
vconn=vconn
rbuf_obj=
-FE310_HOME = /opt/my/freedom-e-sdk
-
-CC = $(FE310_HOME)/work/build/riscv-gnu-toolchain/riscv64-unknown-elf/prefix/bin/riscv64-unknown-elf-gcc
-AR = $(FE310_HOME)/work/build/riscv-gnu-toolchain/riscv64-unknown-elf/prefix/bin/riscv64-unknown-elf-ar
-
-CFLAGS = -DECP_WITH_VCONN=1 -DECP_DEBUG=1 -O3 -fno-builtin-printf -march=rv32imac -mabi=ilp32 -mcmodel=medany -I$(FE310_HOME)/bsp/include -I$(FE310_HOME)/bsp/drivers -I$(FE310_HOME)/bsp/env -I$(FE310_HOME)/bsp/env/freedom-e300-hifive1 -I../fe310 -I../../fe310
+include $(FE310_HOME)/common.mk
+CFLAGS += -DECP_WITH_VCONN=1 -DECP_DEBUG=1 -I$(FE310_HOME) -I$(FE310_HOME)/include