From 7d5cc30cd80ce7f59d94a52d8759be3c9f4aaeef Mon Sep 17 00:00:00 2001 From: Joe Cheng Date: Tue, 3 Oct 2023 10:19:26 +0800 Subject: [PATCH] zephyr : import dts library Importing DTS library here to ensure DTS library is built into SOF firmware as a static library. Signed-off-by: Joe Cheng --- zephyr/CMakeLists.txt | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt index 7e2b9c46055b..4737f97dcf5c 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -711,10 +711,15 @@ zephyr_library_sources_ifdef(CONFIG_COMP_GOOGLE_HOTWORD_DETECT zephyr_library_sources_ifdef(CONFIG_DTS_CODEC ${SOF_AUDIO_PATH}/module_adapter/module/dts/dts.c ) - -zephyr_library_sources_ifdef(CONFIG_DTS_CODEC_STUB - ${SOF_AUDIO_PATH}/module_adapter/module/dts/dts_stub.c -) +if (CONFIG_DTS_CODEC) + if (CONFIG_DTS_CODEC_STUB) + zephyr_library_sources( + ${SOF_AUDIO_PATH}/module_adapter/module/dts/dts_stub.c + ) + else() + zephyr_library_import(DtsCodec ${SOF_AUDIO_PATH}/module_adapter/lib/release/libdts-sof-interface-i32.a) + endif() +endif() zephyr_library_sources_ifdef(CONFIG_WAVES_CODEC ${SOF_AUDIO_PATH}/module_adapter/module/waves/waves.c