summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitmodules9
-rw-r--r--atmel-samd/boards/circuitplayground_express/mpconfigboard.mk3
m---------frozen/Adafruit_CircuitPython_BusDevice0
m---------frozen/Adafruit_CircuitPython_LIS3DH0
m---------frozen/Adafruit_CircuitPython_Thermistor0
-rw-r--r--py/mkrules.mk6
6 files changed, 18 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules
index 54c4d5a9c..faad88a85 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -20,3 +20,12 @@
[submodule "atmel-samd/frozen/Adafruit_CircuitPython_NeoPixel"]
path = frozen/Adafruit_CircuitPython_NeoPixel
url = https://github.com/adafruit/Adafruit_CircuitPython_NeoPixel
+[submodule "frozen/Adafruit_CircuitPython_Thermistor"]
+ path = frozen/Adafruit_CircuitPython_Thermistor
+ url = https://github.com/adafruit/Adafruit_CircuitPython_Thermistor.git
+[submodule "frozen/Adafruit_CircuitPython_LIS3DH"]
+ path = frozen/Adafruit_CircuitPython_LIS3DH
+ url = https://github.com/adafruit/Adafruit_CircuitPython_LIS3DH.git
+[submodule "frozen/Adafruit_CircuitPython_BusDevice"]
+ path = frozen/Adafruit_CircuitPython_BusDevice
+ url = https://github.com/adafruit/Adafruit_CircuitPython_BusDevice.git
diff --git a/atmel-samd/boards/circuitplayground_express/mpconfigboard.mk b/atmel-samd/boards/circuitplayground_express/mpconfigboard.mk
index d773f2f60..e8195c90d 100644
--- a/atmel-samd/boards/circuitplayground_express/mpconfigboard.mk
+++ b/atmel-samd/boards/circuitplayground_express/mpconfigboard.mk
@@ -7,4 +7,7 @@ FLASH_IMPL = spi_flash.c
CHIP_VARIANT = SAMD21G18A
# Include these Python libraries in firmware.
+FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_BusDevice
+FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_LIS3DH
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel
+FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_Thermistor
diff --git a/frozen/Adafruit_CircuitPython_BusDevice b/frozen/Adafruit_CircuitPython_BusDevice
new file mode 160000
+Subproject 39f28ed4e0e5a06fc33fd01c1efc8c52c4140f0
diff --git a/frozen/Adafruit_CircuitPython_LIS3DH b/frozen/Adafruit_CircuitPython_LIS3DH
new file mode 160000
+Subproject fa00b61d1bde90c3cf9cce74388cb9717058b2b
diff --git a/frozen/Adafruit_CircuitPython_Thermistor b/frozen/Adafruit_CircuitPython_Thermistor
new file mode 160000
+Subproject 2d57c0ba9a09d6d30f0ae2b98aba9567c25e6fb
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