summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2022-01-31 21:52:23 +0100
committerUros Majstorovic <majstor@majstor.org>2022-01-31 21:52:23 +0100
commit6594778ab99958c3efb7325e4203bb4e593fc1a6 (patch)
treea3c08ea0bc9da7dfbc304625940a454b26f5a443
parentce5b6bc9faf38c7feaf5053424176d39e91c7323 (diff)
fixed build
-rw-r--r--fw/fe310/platform.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/fw/fe310/platform.mk b/fw/fe310/platform.mk
new file mode 100644
index 0000000..ab45367
--- /dev/null
+++ b/fw/fe310/platform.mk
@@ -0,0 +1,5 @@
+CC = $(RISCV_HOME)/bin/riscv64-unknown-elf-gcc
+AR = $(RISCV_HOME)/bin/riscv64-unknown-elf-ar
+RANLIB = $(RISCV_HOME)/bin/riscv64-unknown-elf-ranlib
+
+CFLAGS = -march=rv32imac -mabi=ilp32 -mcmodel=medlow -ffunction-sections -fdata-sections --specs=nano.specs -O2