diff options
| author | Damien George <damien@micropython.org> | 2022-03-25 11:47:30 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-03-25 11:47:30 +1100 |
| commit | b083cdba2b59e7ad68a718cec9d015ab7aede4c8 (patch) | |
| tree | d7b9e5010a3d181dfa317c187c306eb312017cb6 | |
| parent | 73623d04d586d90a53836ba2e46cba271dc846c8 (diff) | |
examples/embedding: Fix build with updated sys and os modules.
Signed-off-by: Damien George <damien@micropython.org>
| -rw-r--r-- | examples/embedding/Makefile.upylib | 1 | ||||
| -rw-r--r-- | examples/embedding/mpconfigport_minimal.h | 7 |
2 files changed, 2 insertions, 6 deletions
diff --git a/examples/embedding/Makefile.upylib b/examples/embedding/Makefile.upylib index 14260a719..80f7eed15 100644 --- a/examples/embedding/Makefile.upylib +++ b/examples/embedding/Makefile.upylib @@ -137,7 +137,6 @@ SRC_C = $(addprefix ports/unix/,\ unix_mphal.c \ input.c \ modmachine.c \ - modos.c \ moduselect.c \ alloc.c \ coverage.c \ diff --git a/examples/embedding/mpconfigport_minimal.h b/examples/embedding/mpconfigport_minimal.h index 07180a322..6cc84dcbc 100644 --- a/examples/embedding/mpconfigport_minimal.h +++ b/examples/embedding/mpconfigport_minimal.h @@ -75,21 +75,18 @@ #define MICROPY_PY_SYS_EXIT (0) #define MICROPY_PY_SYS_PLATFORM "linux" #define MICROPY_PY_SYS_MAXSIZE (0) +#define MICROPY_PY_SYS_PATH_DEFAULT ".frozen" #define MICROPY_PY_SYS_STDFILES (0) #define MICROPY_PY_CMATH (0) #define MICROPY_PY_UCTYPES (0) #define MICROPY_PY_UZLIB (0) #define MICROPY_PY_UJSON (0) +#define MICROPY_PY_UOS (1) #define MICROPY_PY_URE (0) #define MICROPY_PY_UHEAPQ (0) #define MICROPY_PY_UHASHLIB (0) #define MICROPY_PY_UBINASCII (0) -extern const struct _mp_obj_module_t mp_module_os; - -#define MICROPY_PORT_BUILTIN_MODULES \ - { MP_ROM_QSTR(MP_QSTR_uos), MP_ROM_PTR(&mp_module_os) }, \ - #define MICROPY_PORT_ROOT_POINTERS \ ////////////////////////////////////////// |
