Workaround for uart makefile issues (#23192)
This commit is contained in:
parent
21276de7d5
commit
092ef661af
3 changed files with 6 additions and 12 deletions
|
@ -329,17 +329,6 @@ ifeq ($(strip $(USE_CHIBIOS_CONTRIB)),yes)
|
|||
EXTRAINCDIRS += $(PLATFORMINC_CONTRIB) $(HALINC_CONTRIB) $(CHIBIOS_CONTRIB)/os/various
|
||||
endif
|
||||
|
||||
#
|
||||
# Extract supported HAL drivers
|
||||
##############################################################################
|
||||
|
||||
define add_lld_driver_define
|
||||
$(eval driver := $(word 2,$(subst /LLD/, ,$(1))))
|
||||
$(eval OPT_DEFS += -DCHIBIOS_HAL_$(driver))
|
||||
endef
|
||||
|
||||
$(foreach dir,$(EXTRAINCDIRS),$(if $(findstring /LLD/,$(dir)),$(call add_lld_driver_define,$(dir))))
|
||||
|
||||
#
|
||||
# Project, sources and paths
|
||||
##############################################################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue