summaryrefslogtreecommitdiff
path: root/fw/fe310/bsp
diff options
context:
space:
mode:
Diffstat (limited to 'fw/fe310/bsp')
-rw-r--r--fw/fe310/bsp/drivers/Makefile2
-rw-r--r--fw/fe310/bsp/gloss/Makefile2
-rw-r--r--fw/fe310/bsp/metal/Makefile2
3 files changed, 3 insertions, 3 deletions
diff --git a/fw/fe310/bsp/drivers/Makefile b/fw/fe310/bsp/drivers/Makefile
index 14fed05..1fb45ba 100644
--- a/fw/fe310/bsp/drivers/Makefile
+++ b/fw/fe310/bsp/drivers/Makefile
@@ -1,5 +1,5 @@
include ../../common.mk
-CFLAGS += -I../include -include sys/cdefs.h
+CFLAGS += -I$(bsp_dir)/include -include sys/cdefs.h
%.o: %.c
$(CC) $(CFLAGS) -c $<
diff --git a/fw/fe310/bsp/gloss/Makefile b/fw/fe310/bsp/gloss/Makefile
index 4376dce..168c9fc 100644
--- a/fw/fe310/bsp/gloss/Makefile
+++ b/fw/fe310/bsp/gloss/Makefile
@@ -1,5 +1,5 @@
include ../../common.mk
-CFLAGS += -I../include
+CFLAGS += -I$(bsp_dir)/include
src = sys_access.c sys_chdir.c sys_chmod.c sys_chown.c sys_close.c sys_execve.c sys_exit.c sys_faccessat.c sys_fork.c sys_fstat.c sys_fstatat.c sys_ftime.c sys_getcwd.c sys_getpid.c \
sys_isatty.c sys_kill.c sys_link.c sys_lseek.c sys_lstat.c sys_open.c sys_openat.c sys_read.c sys_sbrk.c sys_stat.c sys_sysconf.c sys_unlink.c sys_utime.c sys_wait.c sys_write.c
diff --git a/fw/fe310/bsp/metal/Makefile b/fw/fe310/bsp/metal/Makefile
index 32acfd2..962d3bc 100644
--- a/fw/fe310/bsp/metal/Makefile
+++ b/fw/fe310/bsp/metal/Makefile
@@ -1,5 +1,5 @@
include ../../common.mk
-CFLAGS += -I../include -I../drivers
+CFLAGS += -I$(bsp_dir)/include -I$(bsp_dir)/drivers
%.o: %.c
$(CC) $(CFLAGS) -c $<