diff options
Diffstat (limited to 'fw/fe310/common.mk')
-rw-r--r-- | fw/fe310/common.mk | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/fw/fe310/common.mk b/fw/fe310/common.mk index ab45367..b6147bd 100644 --- a/fw/fe310/common.mk +++ b/fw/fe310/common.mk @@ -1,5 +1,7 @@ -CC = $(RISCV_HOME)/bin/riscv64-unknown-elf-gcc -AR = $(RISCV_HOME)/bin/riscv64-unknown-elf-ar -RANLIB = $(RISCV_HOME)/bin/riscv64-unknown-elf-ranlib +fe310_dir := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) +bsp_dir := $(abspath $(fe310_dir)/bsp) +eos_dir := $(abspath $(fe310_dir)/eos) +crypto_dir := $(abspath $(fe310_dir)/../../crypto) -CFLAGS = -march=rv32imac -mabi=ilp32 -mcmodel=medlow -ffunction-sections -fdata-sections --specs=nano.specs -O2 +include $(fe310_dir)/platform.mk +CFLAGS += -I$(eos_dir) |