diff --git a/src/audio/aria/CMakeLists.txt b/src/audio/aria/CMakeLists.txt index b8c1cd7ea761..f967fbbea895 100644 --- a/src/audio/aria/CMakeLists.txt +++ b/src/audio/aria/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause -if(CONFIG_COMP_ARIA STREQUAL "m") +if(CONFIG_COMP_ARIA STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(llext ${PROJECT_BINARY_DIR}/aria_llext) add_dependencies(app aria) else() diff --git a/src/audio/asrc/CMakeLists.txt b/src/audio/asrc/CMakeLists.txt index 51fa3565c65d..696549090f55 100644 --- a/src/audio/asrc/CMakeLists.txt +++ b/src/audio/asrc/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause -if(CONFIG_COMP_ASRC STREQUAL "m") +if(CONFIG_COMP_ASRC STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(llext ${PROJECT_BINARY_DIR}/asrc_llext) add_dependencies(app asrc) return() diff --git a/src/audio/codec/CMakeLists.txt b/src/audio/codec/CMakeLists.txt index 3a81324633e5..5c4e2c485c21 100644 --- a/src/audio/codec/CMakeLists.txt +++ b/src/audio/codec/CMakeLists.txt @@ -3,7 +3,7 @@ is_zephyr(zephyr) if(zephyr) ### Zephyr ### - if(CONFIG_DTS_CODEC STREQUAL "m") + if(CONFIG_DTS_CODEC STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(dts/llext ${PROJECT_BINARY_DIR}/dts_llext) add_dependencies(app dts) diff --git a/src/audio/crossover/CMakeLists.txt b/src/audio/crossover/CMakeLists.txt index 8cea3e0c5156..cd24cc33eb27 100644 --- a/src/audio/crossover/CMakeLists.txt +++ b/src/audio/crossover/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause -if(CONFIG_COMP_CROSSOVER STREQUAL "m") +if(CONFIG_COMP_CROSSOVER STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(llext ${PROJECT_BINARY_DIR}/crossover_llext) add_dependencies(app crossover) return() diff --git a/src/audio/dcblock/CMakeLists.txt b/src/audio/dcblock/CMakeLists.txt index c97b957552ab..7927b6913a42 100644 --- a/src/audio/dcblock/CMakeLists.txt +++ b/src/audio/dcblock/CMakeLists.txt @@ -1,4 +1,4 @@ -if(CONFIG_COMP_DCBLOCK STREQUAL "m") +if(CONFIG_COMP_DCBLOCK STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(llext ${PROJECT_BINARY_DIR}/dcblock_llext) add_dependencies(app dcblock) return() diff --git a/src/audio/drc/CMakeLists.txt b/src/audio/drc/CMakeLists.txt index b497284d6bb8..883c32675b50 100644 --- a/src/audio/drc/CMakeLists.txt +++ b/src/audio/drc/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause -if(CONFIG_COMP_DRC STREQUAL "m") +if(CONFIG_COMP_DRC STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(llext ${PROJECT_BINARY_DIR}/drc_llext) add_dependencies(app drc) else() diff --git a/src/audio/eq_fir/CMakeLists.txt b/src/audio/eq_fir/CMakeLists.txt index aaaabe9812bb..2c98126a1d86 100644 --- a/src/audio/eq_fir/CMakeLists.txt +++ b/src/audio/eq_fir/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause -if(CONFIG_COMP_FIR STREQUAL "m") +if(CONFIG_COMP_FIR STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(llext ${PROJECT_BINARY_DIR}/eq_fir_llext) add_dependencies(app eq_fir) diff --git a/src/audio/eq_iir/CMakeLists.txt b/src/audio/eq_iir/CMakeLists.txt index 7519ec77b0c8..33c50df17df8 100644 --- a/src/audio/eq_iir/CMakeLists.txt +++ b/src/audio/eq_iir/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause -if(CONFIG_COMP_IIR STREQUAL "m") +if(CONFIG_COMP_IIR STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(llext ${PROJECT_BINARY_DIR}/eq_iir_llext) add_dependencies(app eq_iir) diff --git a/src/audio/google/CMakeLists.txt b/src/audio/google/CMakeLists.txt index fcb829306e16..fa55c9f39a2e 100644 --- a/src/audio/google/CMakeLists.txt +++ b/src/audio/google/CMakeLists.txt @@ -14,7 +14,7 @@ if(zephyr) ### Zephyr ### google_hotword_detect.c ) - if(CONFIG_COMP_GOOGLE_RTC_AUDIO_PROCESSING STREQUAL "m") + if(CONFIG_COMP_GOOGLE_RTC_AUDIO_PROCESSING STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(llext_rtc ${PROJECT_BINARY_DIR}/google_rtc_audio_processing_llext) add_dependencies(app google_rtc_audio_processing) @@ -37,7 +37,7 @@ if(zephyr) ### Zephyr ### endif() endif() - if(CONFIG_COMP_GOOGLE_CTC_AUDIO_PROCESSING STREQUAL "m") + if(CONFIG_COMP_GOOGLE_CTC_AUDIO_PROCESSING STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(llext_ctc ${PROJECT_BINARY_DIR}/google_ctc_audio_processing_llext) add_dependencies(app google_ctc_audio_processing) diff --git a/src/audio/igo_nr/CMakeLists.txt b/src/audio/igo_nr/CMakeLists.txt index 8ee1709ff5d6..f0fee994d82f 100644 --- a/src/audio/igo_nr/CMakeLists.txt +++ b/src/audio/igo_nr/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause -if(CONFIG_COMP_IGO_NR STREQUAL "m") +if(CONFIG_COMP_IGO_NR STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(llext ${PROJECT_BINARY_DIR}/igo_nr_llext) add_dependencies(app igo_nr) return() diff --git a/src/audio/level_multiplier/CMakeLists.txt b/src/audio/level_multiplier/CMakeLists.txt index aa3f19a02b66..1805c56a0bce 100644 --- a/src/audio/level_multiplier/CMakeLists.txt +++ b/src/audio/level_multiplier/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause -if(CONFIG_COMP_LEVEL_MULTIPLIER STREQUAL "m") +if(CONFIG_COMP_LEVEL_MULTIPLIER STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(llext ${PROJECT_BINARY_DIR}/level_multiplier_llext) add_dependencies(app level_multiplier) else() diff --git a/src/audio/mfcc/CMakeLists.txt b/src/audio/mfcc/CMakeLists.txt index 83a34a75e324..f8af79d1ca8a 100644 --- a/src/audio/mfcc/CMakeLists.txt +++ b/src/audio/mfcc/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause -if(CONFIG_COMP_MFCC STREQUAL "m") +if(CONFIG_COMP_MFCC STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(llext ${PROJECT_BINARY_DIR}/mfcc_llext) add_dependencies(app mfcc) else() diff --git a/src/audio/mixin_mixout/CMakeLists.txt b/src/audio/mixin_mixout/CMakeLists.txt index e6f0776b8b92..11eccf85f499 100644 --- a/src/audio/mixin_mixout/CMakeLists.txt +++ b/src/audio/mixin_mixout/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause -if(CONFIG_COMP_MIXIN_MIXOUT STREQUAL "m") +if(CONFIG_COMP_MIXIN_MIXOUT STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(llext ${PROJECT_BINARY_DIR}/mixin_mixout_llext) add_dependencies(app mixin_mixout) diff --git a/src/audio/module_adapter/CMakeLists.txt b/src/audio/module_adapter/CMakeLists.txt index 505431e16613..0ad91176bfc5 100644 --- a/src/audio/module_adapter/CMakeLists.txt +++ b/src/audio/module_adapter/CMakeLists.txt @@ -48,7 +48,7 @@ if(zephyr) ### Zephyr ### if(CONFIG_WAVES_CODEC) set(WAVES_DIR module/waves) - if(CONFIG_WAVES_CODEC STREQUAL "m") + if(CONFIG_WAVES_CODEC STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(${WAVES_DIR}/llext ${PROJECT_BINARY_DIR}/waves_llext) add_dependencies(app waves) else() diff --git a/src/audio/multiband_drc/CMakeLists.txt b/src/audio/multiband_drc/CMakeLists.txt index 6267948030a8..0651cb9884e6 100644 --- a/src/audio/multiband_drc/CMakeLists.txt +++ b/src/audio/multiband_drc/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause -if(CONFIG_COMP_MULTIBAND_DRC STREQUAL "m") +if(CONFIG_COMP_MULTIBAND_DRC STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(llext ${PROJECT_BINARY_DIR}/multiband_drc_llext) add_dependencies(app multiband_drc) else() diff --git a/src/audio/mux/CMakeLists.txt b/src/audio/mux/CMakeLists.txt index 6064c738aa29..e8872dfd41d4 100644 --- a/src/audio/mux/CMakeLists.txt +++ b/src/audio/mux/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause -if(CONFIG_COMP_MUX STREQUAL "m") +if(CONFIG_COMP_MUX STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(llext ${PROJECT_BINARY_DIR}/mux_llext) add_dependencies(app mux) else() diff --git a/src/audio/rtnr/CMakeLists.txt b/src/audio/rtnr/CMakeLists.txt index 26ee76ac38f8..e3bc38d1f51c 100644 --- a/src/audio/rtnr/CMakeLists.txt +++ b/src/audio/rtnr/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause -if(CONFIG_COMP_RTNR STREQUAL "m") +if(CONFIG_COMP_RTNR STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(llext ${PROJECT_BINARY_DIR}/rtnr_llext) add_dependencies(app rtnr) return() diff --git a/src/audio/selector/CMakeLists.txt b/src/audio/selector/CMakeLists.txt index eb92a8c29510..d3d96e00b829 100644 --- a/src/audio/selector/CMakeLists.txt +++ b/src/audio/selector/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause -if(CONFIG_COMP_SEL STREQUAL "m") +if(CONFIG_COMP_SEL STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(llext ${PROJECT_BINARY_DIR}/selector_llext) add_dependencies(app selector) return() diff --git a/src/audio/src/CMakeLists.txt b/src/audio/src/CMakeLists.txt index 469384694379..6def00db23ac 100644 --- a/src/audio/src/CMakeLists.txt +++ b/src/audio/src/CMakeLists.txt @@ -13,7 +13,7 @@ sof_list_append_ifdef(CONFIG_COMP_SRC_LITE base_files src_lite.c) is_zephyr(zephyr) if(zephyr) ### Zephyr ### - if(CONFIG_COMP_SRC STREQUAL "m") + if(CONFIG_COMP_SRC STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(llext ${PROJECT_BINARY_DIR}/src_llext) add_dependencies(app src) diff --git a/src/audio/tdfb/CMakeLists.txt b/src/audio/tdfb/CMakeLists.txt index 2ecc72640349..aaa61cacaa9f 100644 --- a/src/audio/tdfb/CMakeLists.txt +++ b/src/audio/tdfb/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause -if(CONFIG_COMP_TDFB STREQUAL "m") +if(CONFIG_COMP_TDFB STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(llext ${PROJECT_BINARY_DIR}/tdfb_llext) add_dependencies(app tdfb) else() diff --git a/src/audio/template/CMakeLists.txt b/src/audio/template/CMakeLists.txt index 5dded00e733c..1dec4618ed5c 100644 --- a/src/audio/template/CMakeLists.txt +++ b/src/audio/template/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause -if(CONFIG_COMP_TEMPLATE STREQUAL "m") +if(CONFIG_COMP_TEMPLATE STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(llext ${PROJECT_BINARY_DIR}/template_llext) add_dependencies(app template) else() diff --git a/src/audio/tensorflow/CMakeLists.txt b/src/audio/tensorflow/CMakeLists.txt index 18209df45afc..5cb3086f46b1 100644 --- a/src/audio/tensorflow/CMakeLists.txt +++ b/src/audio/tensorflow/CMakeLists.txt @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # are we building the llext module ? -if(CONFIG_COMP_TENSORFLOW STREQUAL "m") +if(CONFIG_COMP_TENSORFLOW STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(llext ${PROJECT_BINARY_DIR}/tflm_llext) add_dependencies(app tflm) return() diff --git a/src/audio/volume/CMakeLists.txt b/src/audio/volume/CMakeLists.txt index 8c743ba1f464..34491132ee2c 100644 --- a/src/audio/volume/CMakeLists.txt +++ b/src/audio/volume/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause -if(CONFIG_COMP_VOLUME STREQUAL "m") +if(CONFIG_COMP_VOLUME STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(llext ${PROJECT_BINARY_DIR}/volume_llext) add_dependencies(app volume) else() diff --git a/src/debug/tester/CMakeLists.txt b/src/debug/tester/CMakeLists.txt index 714f379a4966..e207a0547f6d 100644 --- a/src/debug/tester/CMakeLists.txt +++ b/src/debug/tester/CMakeLists.txt @@ -9,7 +9,7 @@ set(base_files is_zephyr(zephyr) if(zephyr) ### Zephyr ### - if(CONFIG_COMP_TESTER STREQUAL "m") + if(CONFIG_COMP_TESTER STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(llext ${PROJECT_BINARY_DIR}/tester_llext) add_dependencies(app tester) diff --git a/src/math/CMakeLists.txt b/src/math/CMakeLists.txt index 44a42884455d..6afd2c342fe0 100644 --- a/src/math/CMakeLists.txt +++ b/src/math/CMakeLists.txt @@ -43,7 +43,7 @@ if(CONFIG_BINARY_LOGARITHM_FIXED) list(APPEND base_files base2log.c) endif() -if(CONFIG_MATH_FIR STREQUAL "m") +if(CONFIG_MATH_FIR STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(fir_llext ${PROJECT_BINARY_DIR}/aux1_fir_llext) add_dependencies(app aux1_fir) elseif(CONFIG_MATH_FIR) @@ -54,7 +54,7 @@ if(CONFIG_MATH_FFT) add_subdirectory(fft) endif() -if(CONFIG_MATH_IIR STREQUAL "m") +if(CONFIG_MATH_IIR STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(iir_llext ${PROJECT_BINARY_DIR}/aux1_iir_llext) add_dependencies(app aux1_iir) elseif(CONFIG_MATH_IIR) diff --git a/src/probe/CMakeLists.txt b/src/probe/CMakeLists.txt index 22ad5e24f9a4..4cbc818513dd 100644 --- a/src/probe/CMakeLists.txt +++ b/src/probe/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause -if(CONFIG_PROBE STREQUAL "m") +if(CONFIG_PROBE STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(llext ${PROJECT_BINARY_DIR}/probe_llext) add_dependencies(app probe) elseif(CONFIG_PROBE) diff --git a/src/samples/audio/CMakeLists.txt b/src/samples/audio/CMakeLists.txt index 4f6628b51add..1dde973de0d7 100644 --- a/src/samples/audio/CMakeLists.txt +++ b/src/samples/audio/CMakeLists.txt @@ -6,7 +6,7 @@ elseif(CONFIG_IPC_MAJOR_4) set(ipc_suffix ipc4) endif() -if(CONFIG_SAMPLE_SMART_AMP STREQUAL "m") +if(CONFIG_SAMPLE_SMART_AMP STREQUAL "m" AND DEFINED CONFIG_LLEXT) add_subdirectory(smart_amp_test_llext ${PROJECT_BINARY_DIR}/smart_amp_test_llext) add_dependencies(app smart_amp_test) elseif(CONFIG_SAMPLE_SMART_AMP)