ifeq ($(USE_SMART_BUILD),yes) ifneq ($(findstring HAL_USE_SDC TRUE,$(HALCONF)),) PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/SDMMCv2/hal_sdc_lld.c endif else PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/SDMMCv2/hal_sdc_lld.c endif PLATFORMINC += $(CHIBIOS)/os/hal/ports/STM32/LLD/SDMMCv2