aboutsummaryrefslogtreecommitdiff
path: root/stmhal/Makefile
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-06-22 16:20:22 +1000
committerDamien George <damien.p.george@gmail.com>2017-06-22 16:20:22 +1000
commitb19138e82e32c512a8b9253519526ec1dc786378 (patch)
treed2653f1c2662c9872a9a08811ac5d1e5185f0ff1 /stmhal/Makefile
parent8ed7155828a44d6fc1055cc1745ec329f867ca12 (diff)
stmhal: Make available the _onewire module, for low-level bus control.
Diffstat (limited to 'stmhal/Makefile')
-rw-r--r--stmhal/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/stmhal/Makefile b/stmhal/Makefile
index 73c7ed6c4..0f3ce0d38 100644
--- a/stmhal/Makefile
+++ b/stmhal/Makefile
@@ -113,6 +113,10 @@ SRC_LIB = $(addprefix lib/,\
utils/sys_stdio_mphal.c \
)
+EXTMOD_SRC_C = $(addprefix extmod/,\
+ modonewire.c \
+ )
+
DRIVERS_SRC_C = $(addprefix drivers/,\
memory/spiflash.c \
)
@@ -254,6 +258,7 @@ endif
OBJ =
OBJ += $(PY_O)
OBJ += $(addprefix $(BUILD)/, $(SRC_LIB:.c=.o))
+OBJ += $(addprefix $(BUILD)/, $(EXTMOD_SRC_C:.c=.o))
OBJ += $(addprefix $(BUILD)/, $(DRIVERS_SRC_C:.c=.o))
OBJ += $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
OBJ += $(addprefix $(BUILD)/, $(SRC_O))
@@ -343,7 +348,7 @@ GEN_CDCINF_FILE = $(HEADER_BUILD)/pybcdc.inf
GEN_CDCINF_HEADER = $(HEADER_BUILD)/pybcdc_inf.h
# List of sources for qstr extraction
-SRC_QSTR += $(SRC_C) $(SRC_MOD) $(SRC_LIB)
+SRC_QSTR += $(SRC_C) $(SRC_MOD) $(SRC_LIB) $(EXTMOD_SRC_C)
# Append any auto-generated sources that are needed by sources listed in
# SRC_QSTR
SRC_QSTR_AUTO_DEPS += $(GEN_CDCINF_HEADER)