diff options
| author | Dan Halbert <halbert@halwitz.org> | 2017-10-03 18:10:13 -0400 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2017-10-08 10:54:46 -0600 |
| commit | ef65ee78c544f0996eeb77ae762d2c4c7ed17057 (patch) | |
| tree | 0452584406ca3acc7fd333f7c5001650f70e5a20 /py | |
| parent | f4981677b0b73d286f3af098a4111f8ba6d286bc (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.mk | 6 |
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 |
