mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 20:56:47 +08:00
cmake:fix drivers build block during cmake reforming
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user