From ce5b6bc9faf38c7feaf5053424176d39e91c7323 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Mon, 31 Jan 2022 21:51:59 +0100 Subject: fixed build --- fw/fe310/common.mk | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'fw/fe310/common.mk') 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) -- cgit v1.2.3