diff options
author | Damien George <damien@micropython.org> | 2022-05-25 12:04:27 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-05-25 13:04:45 +1000 |
commit | 5956466c0ee08f7a08d274de65ff2d0ffc901137 (patch) | |
tree | 3df151037dc9f5b3ec69117c2153af2d11c938ef /mpy-cross | |
parent | 26b1d31eda292d9cd5cfc68f14ce8055256fade8 (diff) | |
download | micropython-5956466c0ee08f7a08d274de65ff2d0ffc901137.tar.gz micropython-5956466c0ee08f7a08d274de65ff2d0ffc901137.zip |
py/builtin: Clean up and simplify import_stat and builtin_open config.
The following changes are made:
- If MICROPY_VFS is enabled then mp_vfs_import_stat and mp_vfs_open are
automatically used for mp_import_stat and mp_builtin_open respectively.
- If MICROPY_PY_IO is enabled then "open" is automatically included in the
set of builtins, and points to mp_builtin_open_obj.
This helps to clean up and simplify the most common port configuration.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'mpy-cross')
-rw-r--r-- | mpy-cross/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mpy-cross/main.c b/mpy-cross/main.c index 390689fcbe..f3ffff61fd 100644 --- a/mpy-cross/main.c +++ b/mpy-cross/main.c @@ -29,6 +29,7 @@ #include <stdlib.h> #include <unistd.h> +#include "py/builtin.h" #include "py/compile.h" #include "py/persistentcode.h" #include "py/runtime.h" |