aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2020-10-02 15:46:13 +1000
committerDamien George <damien@micropython.org>2020-10-02 15:46:13 +1000
commit0fff2e03fe07471997a6df6f92c6960cfd225dc0 (patch)
treea35205da8be04d5dd081b10b35a9734be552a5f5
parent817b80a102a413b6458ea391bb2c463aff99672e (diff)
stm32/Makefile: Allow boards to extend SRC_C, SRC_O and OBJ variables.docs-dev
Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r--ports/stm32/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile
index 7b68299e0..cf3a589ca 100644
--- a/ports/stm32/Makefile
+++ b/ports/stm32/Makefile
@@ -259,7 +259,7 @@ DRIVERS_SRC_C = $(addprefix drivers/,\
dht/dht.c \
)
-SRC_C = \
+SRC_C += \
main.c \
stm32_it.c \
usbd_conf.c \
@@ -330,7 +330,7 @@ SRC_C = \
adc.c \
$(wildcard $(BOARD_DIR)/*.c)
-SRC_O = \
+SRC_O += \
$(STARTUP_FILE) \
$(SYSTEM_FILE)
@@ -505,7 +505,6 @@ endif
endif
-OBJ =
OBJ += $(PY_O)
OBJ += $(addprefix $(BUILD)/, $(LIB_SRC_C:.c=.o))
OBJ += $(LIBM_O)