unix: Enable uos.VfsLfs1, uos.VfsLfs2 on coverage build.
parent
a099505420
commit
62d5659cdd
|
@ -257,6 +257,7 @@ coverage:
|
||||||
-Wold-style-definition -Wpointer-arith -Wshadow -Wuninitialized -Wunused-parameter \
|
-Wold-style-definition -Wpointer-arith -Wshadow -Wuninitialized -Wunused-parameter \
|
||||||
-DMICROPY_UNIX_COVERAGE' \
|
-DMICROPY_UNIX_COVERAGE' \
|
||||||
LDFLAGS_EXTRA='-fprofile-arcs -ftest-coverage' \
|
LDFLAGS_EXTRA='-fprofile-arcs -ftest-coverage' \
|
||||||
|
MICROPY_VFS_LFS=1 \
|
||||||
FROZEN_MANIFEST=manifest_coverage.py \
|
FROZEN_MANIFEST=manifest_coverage.py \
|
||||||
BUILD=build-coverage PROG=micropython_coverage
|
BUILD=build-coverage PROG=micropython_coverage
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
#include "extmod/vfs.h"
|
#include "extmod/vfs.h"
|
||||||
#include "extmod/vfs_posix.h"
|
#include "extmod/vfs_posix.h"
|
||||||
#include "extmod/vfs_fat.h"
|
#include "extmod/vfs_fat.h"
|
||||||
|
#include "extmod/vfs_lfs.h"
|
||||||
|
|
||||||
#if MICROPY_VFS
|
#if MICROPY_VFS
|
||||||
|
|
||||||
|
@ -71,6 +72,10 @@ STATIC const mp_rom_map_elem_t uos_vfs_module_globals_table[] = {
|
||||||
#if MICROPY_VFS_FAT
|
#if MICROPY_VFS_FAT
|
||||||
{ MP_ROM_QSTR(MP_QSTR_VfsFat), MP_ROM_PTR(&mp_fat_vfs_type) },
|
{ MP_ROM_QSTR(MP_QSTR_VfsFat), MP_ROM_PTR(&mp_fat_vfs_type) },
|
||||||
#endif
|
#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);
|
STATIC MP_DEFINE_CONST_DICT(uos_vfs_module_globals, uos_vfs_module_globals_table);
|
||||||
|
|
Loading…
Reference in New Issue