1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

unix: enable micropython uos extmod

This commit is contained in:
Jan Pochyla 2019-04-02 15:33:34 +02:00 committed by Pavol Rusnak
parent a36c100eb9
commit 22759ca95f
2 changed files with 3 additions and 2 deletions

View File

@ -127,6 +127,7 @@ SOURCE_MICROPYTHON = [
'vendor/micropython/extmod/modutimeq.c', 'vendor/micropython/extmod/modutimeq.c',
'vendor/micropython/extmod/utime_mphal.c', 'vendor/micropython/extmod/utime_mphal.c',
'vendor/micropython/lib/mp-readline/readline.c', 'vendor/micropython/lib/mp-readline/readline.c',
'vendor/micropython/ports/unix/modos.c',
'vendor/micropython/py/argcheck.c', 'vendor/micropython/py/argcheck.c',
'vendor/micropython/py/asmarm.c', 'vendor/micropython/py/asmarm.c',
'vendor/micropython/py/asmbase.c', 'vendor/micropython/py/asmbase.c',

View File

@ -177,7 +177,7 @@ extern const struct _mp_print_t mp_stderr_print;
#define MICROPY_ASYNC_KBD_INTR (1) #define MICROPY_ASYNC_KBD_INTR (1)
// extern const struct _mp_obj_module_t mp_module_machine; // extern const struct _mp_obj_module_t mp_module_machine;
// extern const struct _mp_obj_module_t mp_module_os; extern const struct _mp_obj_module_t mp_module_os;
// extern const struct _mp_obj_module_t mp_module_uos_vfs; // extern const struct _mp_obj_module_t mp_module_uos_vfs;
// extern const struct _mp_obj_module_t mp_module_uselect; // extern const struct _mp_obj_module_t mp_module_uselect;
extern const struct _mp_obj_module_t mp_module_time; extern const struct _mp_obj_module_t mp_module_time;
@ -272,7 +272,7 @@ extern const struct _mp_obj_module_t mp_module_trezorutils;
MICROPY_PY_UTIME_DEF \ MICROPY_PY_UTIME_DEF \
MICROPY_PY_SOCKET_DEF \ MICROPY_PY_SOCKET_DEF \
/* { MP_ROM_QSTR(MP_QSTR_umachine), MP_ROM_PTR(&mp_module_machine) }, */ \ /* { MP_ROM_QSTR(MP_QSTR_umachine), MP_ROM_PTR(&mp_module_machine) }, */ \
/* { MP_ROM_QSTR(MP_QSTR_uos), MP_ROM_PTR(&mp_module_os) }, */ \ { MP_ROM_QSTR(MP_QSTR_uos), MP_ROM_PTR(&mp_module_os) }, \
MICROPY_PY_UOS_VFS_DEF \ MICROPY_PY_UOS_VFS_DEF \
MICROPY_PY_USELECT_DEF \ MICROPY_PY_USELECT_DEF \
MICROPY_PY_TERMIOS_DEF \ MICROPY_PY_TERMIOS_DEF \