summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-10-18 17:25:21 +1100
committerDamien George <damien.p.george@gmail.com>2019-10-29 14:17:29 +1100
commit62d5659cdd198cf88ed9ac5a2b0aadb03a8098cb (patch)
treed451c7631fb40ead1324f7867aea61ef5b767d18
parenta099505420221790509ab92611db52d0131e401a (diff)
unix: Enable uos.VfsLfs1, uos.VfsLfs2 on coverage build.
-rw-r--r--ports/unix/Makefile1
-rw-r--r--ports/unix/moduos_vfs.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/ports/unix/Makefile b/ports/unix/Makefile
index bcc76ce16..5a21bd6b2 100644
--- a/ports/unix/Makefile
+++ b/ports/unix/Makefile
@@ -257,6 +257,7 @@ coverage:
-Wold-style-definition -Wpointer-arith -Wshadow -Wuninitialized -Wunused-parameter \
-DMICROPY_UNIX_COVERAGE' \
LDFLAGS_EXTRA='-fprofile-arcs -ftest-coverage' \
+ MICROPY_VFS_LFS=1 \
FROZEN_MANIFEST=manifest_coverage.py \
BUILD=build-coverage PROG=micropython_coverage
diff --git a/ports/unix/moduos_vfs.c b/ports/unix/moduos_vfs.c
index e9ac8e1f8..7abd0d150 100644
--- a/ports/unix/moduos_vfs.c
+++ b/ports/unix/moduos_vfs.c
@@ -30,6 +30,7 @@
#include "extmod/vfs.h"
#include "extmod/vfs_posix.h"
#include "extmod/vfs_fat.h"
+#include "extmod/vfs_lfs.h"
#if MICROPY_VFS
@@ -71,6 +72,10 @@ STATIC const mp_rom_map_elem_t uos_vfs_module_globals_table[] = {
#if MICROPY_VFS_FAT
{ MP_ROM_QSTR(MP_QSTR_VfsFat), MP_ROM_PTR(&mp_fat_vfs_type) },
#endif
+ #if MICROPY_VFS_LFS
+ { MP_ROM_QSTR(MP_QSTR_VfsLfs1), MP_ROM_PTR(&mp_type_vfs_lfs1) },
+ { MP_ROM_QSTR(MP_QSTR_VfsLfs2), MP_ROM_PTR(&mp_type_vfs_lfs2) },
+ #endif
};
STATIC MP_DEFINE_CONST_DICT(uos_vfs_module_globals, uos_vfs_module_globals_table);