Skip to content

Commit c303b15

Browse files
robert-hhdpgeorge
authored andcommitted
mimxrt: Enable frozen modules.
1 parent fdaf2b8 commit c303b15

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

Diff for: ports/mimxrt/Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ include $(BOARD_DIR)/mpconfigboard.mk
1515
QSTR_DEFS = qstrdefsport.h
1616
QSTR_GLOBAL_DEPENDENCIES = $(BOARD_DIR)/mpconfigboard.h
1717

18+
# MicroPython feature configurations
19+
FROZEN_MANIFEST ?= boards/manifest.py
20+
1821
# Include py core make definitions
1922
include $(TOP)/py/py.mk
2023

Diff for: ports/mimxrt/boards/manifest.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
freeze("$(PORT_DIR)/modules")

Diff for: ports/mimxrt/mpconfigport.h

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
#define MICROPY_ENABLE_SOURCE_LINE (1)
4949
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_TERSE)
5050
#define MICROPY_CAN_OVERRIDE_BUILTINS (1)
51+
#define MICROPY_MODULE_FROZEN_MPY (1)
52+
#define MICROPY_QSTR_EXTRA_POOL mp_qstr_frozen_const_pool
5153

5254
// Control over Python builtins
5355
#define MICROPY_PY_BUILTINS_STR_COUNT (0)

0 commit comments

Comments
 (0)