Skip to content

Commit b083cdb

Browse files
committed
examples/embedding: Fix build with updated sys and os modules.
Signed-off-by: Damien George <damien@micropython.org>
1 parent 73623d0 commit b083cdb

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

examples/embedding/Makefile.upylib

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ SRC_C = $(addprefix ports/unix/,\
137137
unix_mphal.c \
138138
input.c \
139139
modmachine.c \
140-
modos.c \
141140
moduselect.c \
142141
alloc.c \
143142
coverage.c \

examples/embedding/mpconfigport_minimal.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,21 +75,18 @@
7575
#define MICROPY_PY_SYS_EXIT (0)
7676
#define MICROPY_PY_SYS_PLATFORM "linux"
7777
#define MICROPY_PY_SYS_MAXSIZE (0)
78+
#define MICROPY_PY_SYS_PATH_DEFAULT ".frozen"
7879
#define MICROPY_PY_SYS_STDFILES (0)
7980
#define MICROPY_PY_CMATH (0)
8081
#define MICROPY_PY_UCTYPES (0)
8182
#define MICROPY_PY_UZLIB (0)
8283
#define MICROPY_PY_UJSON (0)
84+
#define MICROPY_PY_UOS (1)
8385
#define MICROPY_PY_URE (0)
8486
#define MICROPY_PY_UHEAPQ (0)
8587
#define MICROPY_PY_UHASHLIB (0)
8688
#define MICROPY_PY_UBINASCII (0)
8789

88-
extern const struct _mp_obj_module_t mp_module_os;
89-
90-
#define MICROPY_PORT_BUILTIN_MODULES \
91-
{ MP_ROM_QSTR(MP_QSTR_uos), MP_ROM_PTR(&mp_module_os) }, \
92-
9390
#define MICROPY_PORT_ROOT_POINTERS \
9491

9592
//////////////////////////////////////////

0 commit comments

Comments
 (0)