cmake: dw: use feature configs in ifs

It is better to include features based on feature Kconfig symbols,
instead of hardcoding them per platform.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
This commit is contained in:
Janusz Jankowski 2019-06-11 11:29:07 +02:00 committed by Tomasz Lauda
parent def3e2de5d
commit a2fa79f211
1 changed files with 6 additions and 2 deletions

View File

@ -4,6 +4,10 @@ if(CONFIG_DW_DMA)
add_local_sources(sof dma.c)
endif()
if(CONFIG_SUECREEK)
add_local_sources(sof gpio.c ssi-spi.c)
if(CONFIG_DW_GPIO)
add_local_sources(sof gpio.c)
endif()
if(CONFIG_DW_SPI)
add_local_sources(sof ssi-spi.c)
endif()