Skip to content

Commit d4b8e68

Browse files
committed
core: Fix chibios user compile options
Compile options can be defined in project Makefile such as UDEFS, UADEFS, UINCDIR, ULIBDIR and ULIBS.
1 parent b85d462 commit d4b8e68

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tool/chibios/chibios.mk

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,10 @@ CPPWARN = -Wall -Wextra -Wundef
201201

202202
# List all user C define here, like -D_DEBUG=1
203203
## Select which interfaces to include here!
204-
UDEFS = $(OPT_DEFS)
204+
UDEFS += $(OPT_DEFS)
205205

206206
# Define ASM defines here
207-
UADEFS = $(OPT_DEFS)
207+
UADEFS += $(OPT_DEFS)
208208
# bootloader definitions may be used in the startup .s file
209209
ifneq ("$(wildcard $(TARGET_DIR)/bootloader_defs.h)","")
210210
UADEFS += -include $(TARGET_DIR)/bootloader_defs.h
@@ -215,13 +215,13 @@ else ifneq ("$(wildcard $(TARGET_DIR)/boards/$(BOARD)/bootloader_defs.h)","")
215215
endif
216216

217217
# List all user directories here
218-
UINCDIR =
218+
#UINCDIR =
219219

220220
# List the user directory to look for the libraries here
221-
ULIBDIR =
221+
#ULIBDIR =
222222

223223
# List all user libraries here
224-
ULIBS =
224+
#ULIBS =
225225

226226
#
227227
# End of user defines

0 commit comments

Comments
 (0)