unix/variants: Enable VFS and all supported filesystems on dev variant.

So that micropython-dev can be used to test VFS code, and inspect and build
filesystem images that are compatible with bare-metal systems.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2020-07-02 16:12:59 +10:00
parent 59ed3bdd9f
commit f5dd46b479
2 changed files with 18 additions and 7 deletions

View File

@ -24,13 +24,22 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#define MICROPY_REPL_EMACS_WORDS_MOVE (1) #define MICROPY_READER_VFS (1)
#define MICROPY_REPL_EMACS_EXTRA_WORDS_MOVE (1) #define MICROPY_REPL_EMACS_WORDS_MOVE (1)
#define MICROPY_ENABLE_SCHEDULER (1) #define MICROPY_REPL_EMACS_EXTRA_WORDS_MOVE (1)
#define MICROPY_ENABLE_SCHEDULER (1)
#define MICROPY_VFS (1)
#define MICROPY_VFS_POSIX (1)
#define MICROPY_PY_SYS_SETTRACE (1) #define MICROPY_PY_SYS_SETTRACE (1)
#define MICROPY_PY_URANDOM_EXTRA_FUNCS (1) #define MICROPY_PY_UOS_VFS (1)
#define MICROPY_PY_URANDOM_EXTRA_FUNCS (1)
#ifndef MICROPY_PY_UASYNCIO #ifndef MICROPY_PY_UASYNCIO
#define MICROPY_PY_UASYNCIO (1) #define MICROPY_PY_UASYNCIO (1)
#endif #endif
// Use vfs's functions for import stat and builtin open.
#define mp_import_stat mp_vfs_import_stat
#define mp_builtin_open mp_vfs_open
#define mp_builtin_open_obj mp_vfs_open_obj

View File

@ -3,5 +3,7 @@ PROG ?= micropython-dev
FROZEN_MANIFEST ?= $(VARIANT_DIR)/manifest.py FROZEN_MANIFEST ?= $(VARIANT_DIR)/manifest.py
MICROPY_ROM_TEXT_COMPRESSION = 1 MICROPY_ROM_TEXT_COMPRESSION = 1
MICROPY_VFS_FAT = 1
MICROPY_VFS_LFS1 = 1
MICROPY_VFS_LFS2 = 1
MICROPY_PY_BLUETOOTH = 1 MICROPY_PY_BLUETOOTH = 1