summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2017-10-03 18:10:13 -0400
committerScott Shawcroft <scott@tannewt.org>2017-10-08 10:54:46 -0600
commitef65ee78c544f0996eeb77ae762d2c4c7ed17057 (patch)
tree0452584406ca3acc7fd333f7c5001650f70e5a20 /py
parentf4981677b0b73d286f3af098a4111f8ba6d286bc (diff)
Freeze libraries needed by adafruit_circuitplayground library into firmware.
This saves a lot of RAM. Fixes #287. Also fixed compilation of frozen_mpy.c to use supplied make rule rather than builtin rule (supplied rule suppresses printing out the gcc command line).
Diffstat (limited to 'py')
-rw-r--r--py/mkrules.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/py/mkrules.mk b/py/mkrules.mk
index 9ed5483b2..656ffd03c 100644
--- a/py/mkrules.mk
+++ b/py/mkrules.mk
@@ -46,6 +46,12 @@ vpath %.c . $(TOP)
$(BUILD)/%.o: %.c
$(call compile_c)
+# frozen.c and frozen_mpy.c are created in $(BUILD), so use our rule
+# for those as well.
+vpath %.c . $(BUILD)
+$(BUILD)/%.o: %.c
+ $(call compile_c)
+
# List all native flags since the current build system doesn't have
# the MicroPython configuration available. However, these flags are
# needed to extract all qstrings