Fix unix build by using filesystem stub

This commit is contained in:
Scott Shawcroft 2019-02-21 13:23:28 -08:00
parent daee83c10b
commit ed1ace09e9
No known key found for this signature in database
GPG Key ID: FD0EDC4B6C53CA59
2 changed files with 7 additions and 2 deletions

View File

@ -149,6 +149,7 @@ SRC_C = \
alloc.c \ alloc.c \
coverage.c \ coverage.c \
fatfs_port.c \ fatfs_port.c \
supervisor/stub/filesystem.c \
supervisor/stub/serial.c \ supervisor/stub/serial.c \
supervisor/stub/stack.c \ supervisor/stub/stack.c \
supervisor/shared/translate.c \ supervisor/shared/translate.c \

View File

@ -26,13 +26,17 @@
#include "supervisor/filesystem.h" #include "supervisor/filesystem.h"
void filesystem_init(void) { void filesystem_init(bool create_allowed, bool force_create) {
(void) create_allowed;
(void) force_create;
} }
void filesystem_flush(void) { void filesystem_flush(void) {
} }
void filesystem_writable_by_python(bool writable) { bool filesystem_is_writable_by_python(fs_user_mount_t *vfs) {
(void) vfs;
return true;
} }
bool filesystem_present(void) { bool filesystem_present(void) {