examples/embedding: Fix build with updated sys and os modules.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2022-03-25 11:47:30 +11:00
parent 73623d04d5
commit b083cdba2b
2 changed files with 2 additions and 6 deletions

View File

@ -137,7 +137,6 @@ SRC_C = $(addprefix ports/unix/,\
unix_mphal.c \ unix_mphal.c \
input.c \ input.c \
modmachine.c \ modmachine.c \
modos.c \
moduselect.c \ moduselect.c \
alloc.c \ alloc.c \
coverage.c \ coverage.c \

View File

@ -75,21 +75,18 @@
#define MICROPY_PY_SYS_EXIT (0) #define MICROPY_PY_SYS_EXIT (0)
#define MICROPY_PY_SYS_PLATFORM "linux" #define MICROPY_PY_SYS_PLATFORM "linux"
#define MICROPY_PY_SYS_MAXSIZE (0) #define MICROPY_PY_SYS_MAXSIZE (0)
#define MICROPY_PY_SYS_PATH_DEFAULT ".frozen"
#define MICROPY_PY_SYS_STDFILES (0) #define MICROPY_PY_SYS_STDFILES (0)
#define MICROPY_PY_CMATH (0) #define MICROPY_PY_CMATH (0)
#define MICROPY_PY_UCTYPES (0) #define MICROPY_PY_UCTYPES (0)
#define MICROPY_PY_UZLIB (0) #define MICROPY_PY_UZLIB (0)
#define MICROPY_PY_UJSON (0) #define MICROPY_PY_UJSON (0)
#define MICROPY_PY_UOS (1)
#define MICROPY_PY_URE (0) #define MICROPY_PY_URE (0)
#define MICROPY_PY_UHEAPQ (0) #define MICROPY_PY_UHEAPQ (0)
#define MICROPY_PY_UHASHLIB (0) #define MICROPY_PY_UHASHLIB (0)
#define MICROPY_PY_UBINASCII (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 \ #define MICROPY_PORT_ROOT_POINTERS \
////////////////////////////////////////// //////////////////////////////////////////