EV3: Build drivers in build folder
@@ -150,7 +150,6 @@ SRC_C = \
coverage.c \
fatfs_port.c \
bgrtask.c \
- ../../drivers/control.c \
$(SRC_MOD)
LIB_SRC_C = $(addprefix lib/,\
@@ -158,6 +157,10 @@ LIB_SRC_C = $(addprefix lib/,\
timeutils/timeutils.c \
)
+PYBRICKS_DRIVERS_SRC_C = $(addprefix ports/pybricks/drivers/,\
+ control.c \
+ )
+
# FatFS VFS support
LIB_SRC_C += $(addprefix lib/,\
oofatfs/ff.c \
@@ -167,7 +170,8 @@ LIB_SRC_C += $(addprefix lib/,\
OBJ = $(PY_O)
OBJ += $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
OBJ += $(addprefix $(BUILD)/, $(LIB_SRC_C:.c=.o))
-
+OBJ += $(addprefix $(BUILD)/, $(PYBRICKS_DRIVERS_SRC_C:.c=.o))
+$(info $$OBJ is [${OBJ}])
# List of sources for qstr extraction
SRC_QSTR += $(SRC_C) $(LIB_SRC_C)
# Append any auto-generated sources that are needed by sources listed in
