Skip to content

Commit 738c5f9

Browse files
committed
cmake/zephyr: unify cmake rules for google_hotword_detect
Adding all source files in a single, giant zephyr/CMakeLists.txt is inconvenient and does not scale. Modify Zephyr rules to use definitions in src/audio/google/ instead. Link: #8260 Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent e232f7c commit 738c5f9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/audio/google/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ if(zephyr) ### Zephyr ###
1010
set(ipc_suffix ipc4)
1111
endif()
1212

13+
zephyr_library_sources_ifdef(CONFIG_COMP_GOOGLE_HOTWORD_DETECT
14+
google_hotword_detect.c
15+
)
16+
1317
if(CONFIG_COMP_GOOGLE_RTC_AUDIO_PROCESSING STREQUAL "m")
1418
add_subdirectory(llext_rtc
1519
${PROJECT_BINARY_DIR}/google_rtc_audio_processing_llext)

zephyr/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -548,10 +548,6 @@ elseif(CONFIG_SAMPLE_SMART_AMP)
548548
)
549549
endif()
550550

551-
zephyr_library_sources_ifdef(CONFIG_COMP_GOOGLE_HOTWORD_DETECT
552-
${SOF_AUDIO_PATH}/google/google_hotword_detect.c
553-
)
554-
555551
if(CONFIG_PROBE STREQUAL "m")
556552
add_subdirectory(${SOF_SRC_PATH}/probe/llext
557553
${PROJECT_BINARY_DIR}/probe_llext)

0 commit comments

Comments
 (0)