Skip to content
Snippets Groups Projects
Commit d08c9d34 authored by Dave Hylands's avatar Dave Hylands
Browse files

Updated FROZEN_DIR support as per f28efa19

parent f28efa19
No related branches found
No related tags found
No related merge requests found
...@@ -154,24 +154,15 @@ endif # USE_MEMZIP ...@@ -154,24 +154,15 @@ endif # USE_MEMZIP
ifeq ($(USE_FROZEN),1) ifeq ($(USE_FROZEN),1)
CFLAGS += -DMICROPY_MODULE_FROZEN_STR
SRC_C += \
lexerfrozen.c
OBJ += $(BUILD)/frozen-files.o
MAKE_FROZEN = ../tools/make-frozen.py
ifeq ($(FROZEN_DIR),) ifeq ($(FROZEN_DIR),)
FROZEN_DIR = memzip_files FROZEN_DIR = memzip_files
endif endif
$(BUILD)/frozen-files.o: $(BUILD)/frozen-files.c CFLAGS += -DMICROPY_MODULE_FROZEN_STR
$(call compile_c)
$(BUILD)/frozen-files.c: $(shell find ${FROZEN_DIR} -type f) SRC_C += \
@$(ECHO) "Creating $@" lexerfrozen.c \
$(Q)$(PYTHON) $(MAKE_FROZEN) $(FROZEN_DIR) > $@ $(BUILD)/frozen.c
endif # USE_FROZEN endif # USE_FROZEN
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment