From 65633202731453f7f4c9d60f092cf5123739b75d Mon Sep 17 00:00:00 2001 From: Andrula Song Date: Wed, 6 Dec 2023 15:50:34 +0800 Subject: [PATCH] zephyr/cmake: Fix the FIR math lib c files including errors Fix the mistake of FIR lib files, we should include FIR math lib .c files base on CONFIG_MATH_FIR instead of CONFIG_COMP_FIR. Signed-off-by: Andrula Song --- zephyr/CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt index 1ae14efc29a2..06e4ea9970c1 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -461,9 +461,6 @@ zephyr_library_sources_ifdef(CONFIG_COMP_FIR ${SOF_AUDIO_PATH}/eq_fir/eq_fir_hifi2ep.c ${SOF_AUDIO_PATH}/eq_fir/eq_fir_generic.c ${SOF_AUDIO_PATH}/eq_fir/eq_fir.c - ${SOF_MATH_PATH}/fir_generic.c - ${SOF_MATH_PATH}/fir_hifi2ep.c - ${SOF_MATH_PATH}/fir_hifi3.c ) if(CONFIG_IPC_MAJOR_3) @@ -488,6 +485,12 @@ elseif(CONFIG_IPC_MAJOR_4) ) endif() +zephyr_library_sources_ifdef(CONFIG_MATH_FIR + ${SOF_MATH_PATH}/fir_generic.c + ${SOF_MATH_PATH}/fir_hifi2ep.c + ${SOF_MATH_PATH}/fir_hifi3.c +) + zephyr_library_sources_ifdef(CONFIG_MATH_IIR_DF1 ${SOF_MATH_PATH}/iir_df1_generic.c ${SOF_MATH_PATH}/iir_df1_hifi3.c