Commit f28efa19 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

py: Move frozen modules rules from esp8266 port for reuse across ports.

A port now just needs to define FROZEN_DIR var and add $(BUILD)/frozen.c
to SRC_C to support frozen modules.
parent 8ae885a0
......@@ -171,9 +171,7 @@ endif
$(BUILD)/frozen.c: $(wildcard $(FROZEN_DIR)/*) $(CONFVARS_FILE)
$(ECHO) "Generating $@"
# to build .mpy files from .py files
......@@ -58,6 +58,8 @@ CXX += -m32
LD += -m32
MAKE_FROZEN = ../tools/
.PHONY: all
......@@ -100,6 +100,12 @@ $(OBJ_DIRS):
$(MKDIR) -p $@
ifneq ($(FROZEN_DIR),)
$(BUILD)/frozen.c: $(wildcard $(FROZEN_DIR)/*) $(HEADER_BUILD) $(FROZEN_EXTRA_DEPS)
$(ECHO) "Generating $@"
ifneq ($(PROG),)
# Build a standalone executable (unix does this)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment