stm32/Makefile: Allow boards to extend SRC_C, SRC_O and OBJ variables.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
817b80a102
commit
0fff2e03fe
@ -259,7 +259,7 @@ DRIVERS_SRC_C = $(addprefix drivers/,\
|
|||||||
dht/dht.c \
|
dht/dht.c \
|
||||||
)
|
)
|
||||||
|
|
||||||
SRC_C = \
|
SRC_C += \
|
||||||
main.c \
|
main.c \
|
||||||
stm32_it.c \
|
stm32_it.c \
|
||||||
usbd_conf.c \
|
usbd_conf.c \
|
||||||
@ -330,7 +330,7 @@ SRC_C = \
|
|||||||
adc.c \
|
adc.c \
|
||||||
$(wildcard $(BOARD_DIR)/*.c)
|
$(wildcard $(BOARD_DIR)/*.c)
|
||||||
|
|
||||||
SRC_O = \
|
SRC_O += \
|
||||||
$(STARTUP_FILE) \
|
$(STARTUP_FILE) \
|
||||||
$(SYSTEM_FILE)
|
$(SYSTEM_FILE)
|
||||||
|
|
||||||
@ -505,7 +505,6 @@ endif
|
|||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
OBJ =
|
|
||||||
OBJ += $(PY_O)
|
OBJ += $(PY_O)
|
||||||
OBJ += $(addprefix $(BUILD)/, $(LIB_SRC_C:.c=.o))
|
OBJ += $(addprefix $(BUILD)/, $(LIB_SRC_C:.c=.o))
|
||||||
OBJ += $(LIBM_O)
|
OBJ += $(LIBM_O)
|
||||||
|
Loading…
Reference in New Issue
Block a user