Skip to content

Commit

Permalink
qemu-arm: Convert to use FROZEN_MANIFEST to specify frozen code.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgeorge committed Oct 15, 2019
1 parent 287800d commit 2e90ff7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions ports/qemu-arm/Makefile
Expand Up @@ -114,11 +114,10 @@ OBJ = $(OBJ_COMMON) $(OBJ_RUN) $(OBJ_TEST)
# List of sources for qstr extraction
SRC_QSTR += $(SRC_COMMON_C) $(SRC_RUN_C) $(LIB_SRC_C)

ifneq ($(FROZEN_MPY_DIR),)
# To use frozen bytecode, put your .py files in a subdirectory (eg frozen/) and
# then invoke make with FROZEN_MPY_DIR=frozen (be sure to build from scratch).
CFLAGS += -DMICROPY_QSTR_EXTRA_POOL=mp_qstr_frozen_const_pool
ifneq ($(FROZEN_MANIFEST),)
CFLAGS += -DMICROPY_MODULE_FROZEN_STR
CFLAGS += -DMICROPY_MODULE_FROZEN_MPY
CFLAGS += -DMICROPY_QSTR_EXTRA_POOL=mp_qstr_frozen_const_pool
MPY_CROSS_FLAGS += -march=armv7m
endif

Expand Down
2 changes: 1 addition & 1 deletion ports/qemu-arm/Makefile.test
@@ -1,6 +1,6 @@
LIB_SRC_C = lib/upytesthelper/upytesthelper.c

FROZEN_MPY_DIR ?= test-frzmpy
FROZEN_MANIFEST ?= "freeze('test-frzmpy')"

include Makefile

Expand Down

0 comments on commit 2e90ff7

Please sign in to comment.