Skip to content

Commit 0fff2e0

Browse files
committed
stm32/Makefile: Allow boards to extend SRC_C, SRC_O and OBJ variables.
Signed-off-by: Damien George <[email protected]>
1 parent 817b80a commit 0fff2e0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ports/stm32/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ DRIVERS_SRC_C = $(addprefix drivers/,\
259259
dht/dht.c \
260260
)
261261

262-
SRC_C = \
262+
SRC_C += \
263263
main.c \
264264
stm32_it.c \
265265
usbd_conf.c \
@@ -330,7 +330,7 @@ SRC_C = \
330330
adc.c \
331331
$(wildcard $(BOARD_DIR)/*.c)
332332

333-
SRC_O = \
333+
SRC_O += \
334334
$(STARTUP_FILE) \
335335
$(SYSTEM_FILE)
336336

@@ -505,7 +505,6 @@ endif
505505

506506
endif
507507

508-
OBJ =
509508
OBJ += $(PY_O)
510509
OBJ += $(addprefix $(BUILD)/, $(LIB_SRC_C:.c=.o))
511510
OBJ += $(LIBM_O)

0 commit comments

Comments
 (0)