summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/mimxrt/Makefile3
-rw-r--r--ports/mimxrt/boards/manifest.py1
-rw-r--r--ports/mimxrt/mpconfigport.h2
3 files changed, 6 insertions, 0 deletions
diff --git a/ports/mimxrt/Makefile b/ports/mimxrt/Makefile
index 0c893f963..b4f581ccd 100644
--- a/ports/mimxrt/Makefile
+++ b/ports/mimxrt/Makefile
@@ -15,6 +15,9 @@ include $(BOARD_DIR)/mpconfigboard.mk
QSTR_DEFS = qstrdefsport.h
QSTR_GLOBAL_DEPENDENCIES = $(BOARD_DIR)/mpconfigboard.h
+# MicroPython feature configurations
+FROZEN_MANIFEST ?= boards/manifest.py
+
# Include py core make definitions
include $(TOP)/py/py.mk
diff --git a/ports/mimxrt/boards/manifest.py b/ports/mimxrt/boards/manifest.py
new file mode 100644
index 000000000..c80309cf6
--- /dev/null
+++ b/ports/mimxrt/boards/manifest.py
@@ -0,0 +1 @@
+freeze("$(PORT_DIR)/modules")
diff --git a/ports/mimxrt/mpconfigport.h b/ports/mimxrt/mpconfigport.h
index 72e804f67..63ee5ea5c 100644
--- a/ports/mimxrt/mpconfigport.h
+++ b/ports/mimxrt/mpconfigport.h
@@ -48,6 +48,8 @@
#define MICROPY_ENABLE_SOURCE_LINE (1)
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_TERSE)
#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
#define MICROPY_PY_BUILTINS_STR_COUNT (0)