summaryrefslogtreecommitdiff
path: root/code/fe310/eos/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'code/fe310/eos/Makefile')
-rw-r--r--code/fe310/eos/Makefile14
1 files changed, 4 insertions, 10 deletions
diff --git a/code/fe310/eos/Makefile b/code/fe310/eos/Makefile
index b7f401c..cb91b59 100644
--- a/code/fe310/eos/Makefile
+++ b/code/fe310/eos/Makefile
@@ -1,13 +1,8 @@
-include ../../ecp/Makefile.fe310
+include ../common.mk
-FE310_HOME = /opt/my/freedom-e-sdk
+CFLAGS += -I../include -I../drivers
-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 = $(CFLAGS_PL) -I../..
-
-obj = trap_entry.o eos.o msgq.o event.o interrupt.o timer.o i2s.o spi.o net.o sock.o ecp.o
+obj = trap_entry.o eos.o msgq.o event.o interrupt.o timer.o i2s.o spi.o net.o sock.o
%.o: %.c %.h
@@ -17,7 +12,6 @@ obj = trap_entry.o eos.o msgq.o event.o interrupt.o timer.o i2s.o spi.o net.o so
$(CC) $(CFLAGS) -c $<
all: $(obj)
- $(AR) rcs libeos.a $(obj)
clean:
- rm -f *.o *.a \ No newline at end of file
+ rm -f *.o \ No newline at end of file