summaryrefslogtreecommitdiff
path: root/atmel-samd/Makefile
diff options
context:
space:
mode:
authorScott Shawcroft <scott@chickadee.tech>2016-08-24 13:17:55 -0700
committerScott Shawcroft <scott@chickadee.tech>2016-08-24 13:17:55 -0700
commit258804ab16b96035eeb99c8caee6055781083007 (patch)
tree868633ebb353c47e3888ca64e558803637d09944 /atmel-samd/Makefile
parent0c4f9b878a096ec4aa49f17ab7bdd23c2bf42d8e (diff)
atmel-samd: Add limited time module support.
Diffstat (limited to 'atmel-samd/Makefile')
-rw-r--r--atmel-samd/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/atmel-samd/Makefile b/atmel-samd/Makefile
index 4069e5020..015caece8 100644
--- a/atmel-samd/Makefile
+++ b/atmel-samd/Makefile
@@ -109,6 +109,7 @@ SRC_ASF = $(addprefix asf/sam0/,\
SRC_C = \
main.c \
+ modutime.c \
mphalport.c \
uart.c \
asf/common/services/sleepmgr/samd/sleepmgr.c \
@@ -124,11 +125,16 @@ SRC_C = \
lib/utils/printf.c \
lib/utils/pyexec.c \
lib/libc/string0.c \
- lib/mp-readline/readline.c \
- $(BUILD)/_frozen_mpy.c \
+ lib/mp-readline/readline.c
+
+SRC_AUTOGEN = \
+ $(BUILD)/_frozen_mpy.c \
OBJ = $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
OBJ += $(addprefix $(BUILD)/, $(SRC_ASF:.c=.o))
+OBJ += $(addprefix $(BUILD)/, $(SRC_AUTOGEN:.c=.o))
+
+SRC_QSTR += $(SRC_C)
ifeq ($(CROSS), 1)
all: $(BUILD)/firmware.bin