From 65559814a88963be489f677a4c3fd057b0ce4325 Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Thu, 13 Jun 2024 14:32:27 +0200 Subject: [PATCH 1/2] llext: add a convenience Kconfig option to build LLEXT modules Add a Kconfig option that can be used to flip all LLEXT-supporting code to a modular build. Use that global flag for smart-amp-test, mixin-mixout and eq-iir. Signed-off-by: Guennadi Liakhovetski --- src/audio/eq_iir/Kconfig | 1 + src/audio/mixin_mixout/Kconfig | 1 + src/library_manager/Kconfig | 8 ++++++++ src/samples/audio/Kconfig | 1 + 4 files changed, 11 insertions(+) diff --git a/src/audio/eq_iir/Kconfig b/src/audio/eq_iir/Kconfig index 2fee46d9a29f..11433d27cfb3 100644 --- a/src/audio/eq_iir/Kconfig +++ b/src/audio/eq_iir/Kconfig @@ -3,6 +3,7 @@ config COMP_IIR tristate "IIR component" select COMP_BLOB + default m if LIBRARY_DEFAULT_MODULAR default y depends on COMP_MODULE_ADAPTER select MATH_IIR_DF1 diff --git a/src/audio/mixin_mixout/Kconfig b/src/audio/mixin_mixout/Kconfig index 852b23f18e08..73016a667bd7 100644 --- a/src/audio/mixin_mixout/Kconfig +++ b/src/audio/mixin_mixout/Kconfig @@ -3,6 +3,7 @@ config COMP_MIXIN_MIXOUT tristate "Mixin_mixout component" depends on IPC_MAJOR_4 + default m if LIBRARY_DEFAULT_MODULAR default y help Select for Mixin_mixout component diff --git a/src/library_manager/Kconfig b/src/library_manager/Kconfig index e167f956a37a..d0657aefc9fb 100644 --- a/src/library_manager/Kconfig +++ b/src/library_manager/Kconfig @@ -33,4 +33,12 @@ config LIBRARY_AUTH_SUPPORT could be used if enabled. If unsure say N. +config LIBRARY_DEFAULT_MODULAR + bool "Build LLEXT modules by default" + depends on LLEXT + help + Build code, that can be built as LLEXT modules as such. Usually such + code has tristate Kconfig entries, they will default to "m" if this + option is selected. + endmenu diff --git a/src/samples/audio/Kconfig b/src/samples/audio/Kconfig index 0338ced15875..7463d8c31412 100644 --- a/src/samples/audio/Kconfig +++ b/src/samples/audio/Kconfig @@ -4,6 +4,7 @@ menu "Audio component samples" config SAMPLE_SMART_AMP tristate "Smart amplifier test component" + default m if LIBRARY_DEFAULT_MODULAR default y help Select for test smart amplifier component From 27f1eb77818e279120babdc50f6ab2c1a748b2d8 Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Tue, 23 Jul 2024 15:30:00 +0200 Subject: [PATCH 2/2] lnl: build all supporting code as LLEXT modules Enable CONFIG_LIBRARY_DEFAULT_MODULAR for LNL to build all supporting code as LLEXT modules. Signed-off-by: Guennadi Liakhovetski --- app/boards/intel_adsp_ace20_lnl.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/boards/intel_adsp_ace20_lnl.conf b/app/boards/intel_adsp_ace20_lnl.conf index 8a9e4b295f5d..443f0a7bae71 100644 --- a/app/boards/intel_adsp_ace20_lnl.conf +++ b/app/boards/intel_adsp_ace20_lnl.conf @@ -82,7 +82,7 @@ CONFIG_MEMORY_WIN_2_SIZE=12288 CONFIG_LLEXT=y CONFIG_LLEXT_STORAGE_WRITABLE=y CONFIG_MODULES=y - +CONFIG_LIBRARY_DEFAULT_MODULAR=y # Temporary disabled options CONFIG_TRACE=n