1
0

Workaround for uart makefile issues (#23192)

This commit is contained in:
Joel Challis
2024-03-02 18:20:18 +00:00
committed by GitHub
parent 21276de7d5
commit 092ef661af
3 changed files with 6 additions and 12 deletions

View File

@@ -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
##############################################################################