aboutsummaryrefslogtreecommitdiff
path: root/emu
diff options
context:
space:
mode:
authorbhgv <bhgv.empire@gmail.com>2020-05-12 13:38:53 +0300
committerbhgv <bhgv.empire@gmail.com>2020-05-12 13:38:53 +0300
commit49064f41a2c731cbdfaf6605f32c9cfb7cc0dfd4 (patch)
tree17a0804a69e8ca128cf53493fc877d0fcdebf3c8 /emu
parent9b5d5f8a4640dbecdc87e5b6e7e95f71018632cf (diff)
support of FreeRTOS riscV-64 (k210 cpu). 2nd step
Diffstat (limited to 'emu')
-rw-r--r--emu/FreeRTOS/devfs-posix.c3
-rw-r--r--emu/FreeRTOS/mkfile2
2 files changed, 4 insertions, 1 deletions
diff --git a/emu/FreeRTOS/devfs-posix.c b/emu/FreeRTOS/devfs-posix.c
index 1f53ac8..958e941 100644
--- a/emu/FreeRTOS/devfs-posix.c
+++ b/emu/FreeRTOS/devfs-posix.c
@@ -15,7 +15,8 @@
#include <sys/un.h>
#endif //{}
#include <utime.h>
-#include <dirent.h>
+#include "../../libiot/vfs/include/sys/dirent.h"
+#include "../../libiot/vfs/vfs.h"
#include <stdio.h>
#define __EXTENSIONS__
#undef getwd
diff --git a/emu/FreeRTOS/mkfile b/emu/FreeRTOS/mkfile
index 88a2620..27237d5 100644
--- a/emu/FreeRTOS/mkfile
+++ b/emu/FreeRTOS/mkfile
@@ -44,6 +44,8 @@ CFLAGS='-DROOT="'$ROOT'"' -DEMU \
-I$ROOT/$SYSTARG/$OBJTYPE/include \
-I$ROOT/include \
-I$ROOT/libinterp \
+ -I$ROOT/libiot/vfs/include \
+ -I$ROOT/libiot/include \
$CTHREADFLAGS $CFLAGS $EMUOPTIONS
#SYSLIBS= $X11LIBS -lm -lpthread
SYSLIBS= -lm -lpthread