diff options
Diffstat (limited to 'os/hal/ports/SAMA/LLD/SPIv1/driver.mk')
-rw-r--r-- | os/hal/ports/SAMA/LLD/SPIv1/driver.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/os/hal/ports/SAMA/LLD/SPIv1/driver.mk b/os/hal/ports/SAMA/LLD/SPIv1/driver.mk index 7a873464d..cafe59fb8 100644 --- a/os/hal/ports/SAMA/LLD/SPIv1/driver.mk +++ b/os/hal/ports/SAMA/LLD/SPIv1/driver.mk @@ -1,2 +1,8 @@ +ifeq ($(USE_SMART_BUILD),yes)
+ifneq ($(findstring HAL_USE_SPI TRUE,$(HALCONF)),)
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/SAMA/LLD/SPIv1/hal_spi_lld.c
+else
+PLATFORMSRC += $(CHIBIOS)/os/hal/ports/SAMA/LLD/SPIv1/hal_spi_lld.c
+endif
+
PLATFORMINC += $(CHIBIOS)/os/hal/ports/SAMA/LLD/SPIv1
|