Skip to content

Commit ed1ace0

Browse files
committed
Fix unix build by using filesystem stub
1 parent daee83c commit ed1ace0

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

ports/unix/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ SRC_C = \
149149
alloc.c \
150150
coverage.c \
151151
fatfs_port.c \
152+
supervisor/stub/filesystem.c \
152153
supervisor/stub/serial.c \
153154
supervisor/stub/stack.c \
154155
supervisor/shared/translate.c \

supervisor/stub/filesystem.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,17 @@
2626

2727
#include "supervisor/filesystem.h"
2828

29-
void filesystem_init(void) {
29+
void filesystem_init(bool create_allowed, bool force_create) {
30+
(void) create_allowed;
31+
(void) force_create;
3032
}
3133

3234
void filesystem_flush(void) {
3335
}
3436

35-
void filesystem_writable_by_python(bool writable) {
37+
bool filesystem_is_writable_by_python(fs_user_mount_t *vfs) {
38+
(void) vfs;
39+
return true;
3640
}
3741

3842
bool filesystem_present(void) {

0 commit comments

Comments
 (0)