mirror of https://github.com/thesofproject/sof.git
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:
parent
def3e2de5d
commit
a2fa79f211
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue