extmod/vfs: Add mp_vfs_mount_romfs_protected() helper.

This function will attempt to create a `VfsRom` instance and mount it at
location "/rom" in the filesystem.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2025-02-21 00:37:49 +11:00
parent 89e6c58c80
commit d4b8ca2ffc
3 changed files with 38 additions and 0 deletions

View File

@@ -68,6 +68,11 @@ Q(utf-8)
Q(.frozen)
#endif
#if MICROPY_VFS_ROM && MICROPY_VFS_ROM_IOCTL
Q(/rom)
Q(/rom/lib)
#endif
#if MICROPY_ENABLE_PYSTACK
Q(pystack exhausted)
#endif