Skip to content

Commit 4de3545

Browse files
committed
bricks/nxt: drop frozen.py
We currently don't have a need for frozen modules on NXT. Upstream changed how frozen modules work so this would need to be reworked anyway if we do have a future need.
1 parent 5f44c58 commit 4de3545

File tree

4 files changed

+1
-16
lines changed

4 files changed

+1
-16
lines changed

bricks/nxt/Makefile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ include ../../micropython/py/mkenv.mk
3535
# qstr definitions (must come before including py.mk)
3636
QSTR_GLOBAL_DEPENDENCIES =
3737

38-
# directory containing scripts to be frozen as bytecode
39-
FROZEN_MPY_DIR ?= modules
4038
FROZEN_MPY_TOOL_ARGS = -mlongint-impl=none
4139

4240
# include py core make definitions
@@ -80,11 +78,6 @@ CFLAGS += -Os -DNDEBUG
8078
CFLAGS += -fdata-sections -ffunction-sections
8179
endif
8280

83-
ifneq ($(FROZEN_MPY_DIR),)
84-
CFLAGS += -DMICROPY_QSTR_EXTRA_POOL=mp_qstr_frozen_const_pool
85-
CFLAGS += -DMICROPY_MODULE_FROZEN_MPY
86-
endif
87-
8881
LIBS = $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
8982

9083
SRC_C = \

bricks/nxt/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ int main(int argc, char **argv) {
107107
pb_imports();
108108

109109
// Run a program
110-
pyexec_frozen_module("frozen.py");
110+
// TODO
111111

112112
// Uninitialize MicroPython and the system hardware
113113
mp_deinit();

bricks/nxt/modules/frozen.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

bricks/nxt/mpconfigport.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#define MICROPY_ENABLE_COMPILER (1)
2525

2626
#define MICROPY_QSTR_BYTES_IN_HASH (1)
27-
#define MICROPY_QSTR_EXTRA_POOL mp_qstr_frozen_const_pool
2827
#define MICROPY_ALLOC_PATH_MAX (256)
2928
#define MICROPY_ALLOC_PARSE_CHUNK_INIT (16)
3029
#define MICROPY_EMIT_X64 (0)

0 commit comments

Comments
 (0)