cmake:fix drivers build block during cmake reforming

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
xuxin19
2023-08-16 12:18:58 +08:00
committed by Xiang Xiao
parent 6364fc6e69
commit f2f0d7fbad
15 changed files with 181 additions and 3 deletions
+17
View File
@@ -48,6 +48,20 @@ if(CONFIG_DRIVERS_AUDIO)
list(APPEND SRCS cs4344.c)
endif()
if(CONFIG_AUDIO_ES8311)
list(APPEND SRCS es8311.c)
if(CONFIG_ES8311_REGDUMP)
list(APPEND SRCS es8311_debug.c)
endif()
endif()
if(CONFIG_AUDIO_ES8388)
list(APPEND SRCS es8388.c)
if(CONFIG_ES8388_REGDUMP)
list(APPEND SRCS es8388_debug.c)
endif()
endif()
if(CONFIG_AUDIO_WM8994)
list(APPEND SRCS wm8994.c)
@@ -84,5 +98,8 @@ if(CONFIG_DRIVERS_AUDIO)
list(APPEND SRCS audio_i2s.c)
endif()
if(CONFIG_AUDIO_DMA)
list(APPEND SRCS audio_dma.c)
endif()
target_sources(drivers PRIVATE ${SRCS})
endif()