diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2019-02-21 13:23:28 -0800 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2019-02-21 13:23:28 -0800 |
| commit | ed1ace09e971b24bc9ff88defe2e128064780824 (patch) | |
| tree | 198e40cc6695b715bf10fa6afc4a1a12e1bfbba6 | |
| parent | daee83c10bc65a98f5574017e4e3fbeb350ffbe8 (diff) | |
Fix unix build by using filesystem stub
| -rw-r--r-- | ports/unix/Makefile | 1 | ||||
| -rw-r--r-- | supervisor/stub/filesystem.c | 8 |
2 files changed, 7 insertions, 2 deletions
diff --git a/ports/unix/Makefile b/ports/unix/Makefile index 99b65ec1b..05b1fcaf8 100644 --- a/ports/unix/Makefile +++ b/ports/unix/Makefile @@ -149,6 +149,7 @@ SRC_C = \ alloc.c \ coverage.c \ fatfs_port.c \ + supervisor/stub/filesystem.c \ supervisor/stub/serial.c \ supervisor/stub/stack.c \ supervisor/shared/translate.c \ diff --git a/supervisor/stub/filesystem.c b/supervisor/stub/filesystem.c index 12fe9fb10..1c4a3e12d 100644 --- a/supervisor/stub/filesystem.c +++ b/supervisor/stub/filesystem.c @@ -26,13 +26,17 @@ #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_writable_by_python(bool writable) { +bool filesystem_is_writable_by_python(fs_user_mount_t *vfs) { + (void) vfs; + return true; } bool filesystem_present(void) { |
