mimxrt: Enable frozen modules.

This commit is contained in:
robert-hh 2021-05-07 09:42:26 +02:00 committed by Damien George
parent fdaf2b80d9
commit c303b15f10
3 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,9 @@ include $(BOARD_DIR)/mpconfigboard.mk
QSTR_DEFS = qstrdefsport.h QSTR_DEFS = qstrdefsport.h
QSTR_GLOBAL_DEPENDENCIES = $(BOARD_DIR)/mpconfigboard.h QSTR_GLOBAL_DEPENDENCIES = $(BOARD_DIR)/mpconfigboard.h
# MicroPython feature configurations
FROZEN_MANIFEST ?= boards/manifest.py
# Include py core make definitions # Include py core make definitions
include $(TOP)/py/py.mk include $(TOP)/py/py.mk

View File

@ -0,0 +1 @@
freeze("$(PORT_DIR)/modules")

View File

@ -48,6 +48,8 @@
#define MICROPY_ENABLE_SOURCE_LINE (1) #define MICROPY_ENABLE_SOURCE_LINE (1)
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_TERSE) #define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_TERSE)
#define MICROPY_CAN_OVERRIDE_BUILTINS (1) #define MICROPY_CAN_OVERRIDE_BUILTINS (1)
#define MICROPY_MODULE_FROZEN_MPY (1)
#define MICROPY_QSTR_EXTRA_POOL mp_qstr_frozen_const_pool
// Control over Python builtins // Control over Python builtins
#define MICROPY_PY_BUILTINS_STR_COUNT (0) #define MICROPY_PY_BUILTINS_STR_COUNT (0)