From 31578e285a21a749a49e3ac146feb8b02fcc7b52 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 4 Dec 2019 06:11:35 +0100 Subject: added new metal sdk --- code/fe310/common.mk | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 code/fe310/common.mk (limited to 'code/fe310/common.mk') diff --git a/code/fe310/common.mk b/code/fe310/common.mk new file mode 100644 index 0000000..d9e3746 --- /dev/null +++ b/code/fe310/common.mk @@ -0,0 +1,6 @@ +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 -O3 +LDFLAGS = $(CFLAGS) -L$(FE310_HOME) -Wl,--gc-sections -nostartfiles -nostdlib -Wl,--start-group -lc -lm -lgcc -leos -Wl,--end-group -T$(FE310_HOME)/default.lds -- cgit v1.2.3