From ef65ee78c544f0996eeb77ae762d2c4c7ed17057 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Tue, 3 Oct 2017 18:10:13 -0400 Subject: 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). --- py/mkrules.mk | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'py') 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 -- cgit v1.2.3