summaryrefslogtreecommitdiff
path: root/ecp/platform/fe310
diff options
context:
space:
mode:
Diffstat (limited to 'ecp/platform/fe310')
-rw-r--r--ecp/platform/fe310/Makefile3
-rw-r--r--ecp/platform/fe310/platform.mk3
-rw-r--r--ecp/platform/fe310/platform_obj.mk1
3 files changed, 5 insertions, 2 deletions
diff --git a/ecp/platform/fe310/Makefile b/ecp/platform/fe310/Makefile
index 340effa..1a3502a 100644
--- a/ecp/platform/fe310/Makefile
+++ b/ecp/platform/fe310/Makefile
@@ -1,5 +1,4 @@
-include ../fe310.mk
-CFLAGS += -I../../src
+include ../common.mk
obj_tr = transport.o
obj_tm = time.o
diff --git a/ecp/platform/fe310/platform.mk b/ecp/platform/fe310/platform.mk
new file mode 100644
index 0000000..0230f29
--- /dev/null
+++ b/ecp/platform/fe310/platform.mk
@@ -0,0 +1,3 @@
+fe310_dir = $(abspath $(src_dir)/../../fw/fe310)
+include $(fe310_dir)/platform.mk
+CFLAGS += -I$(fe310_dir) -DECP_WITH_VCONN=1 -DECP_DEBUG=1 -D__FE310__
diff --git a/ecp/platform/fe310/platform_obj.mk b/ecp/platform/fe310/platform_obj.mk
new file mode 100644
index 0000000..52e4bb1
--- /dev/null
+++ b/ecp/platform/fe310/platform_obj.mk
@@ -0,0 +1 @@
+subdirs += vconn