library_manager: module_adapter: Enable build of library manager and IADK modules

Add the library manager and IADK modules to build.

Signed-off-by: Jaroslaw Stelter <Jaroslaw.Stelter@intel.com>
This commit is contained in:
Jaroslaw Stelter 2022-09-05 15:03:28 +02:00 committed by Liam Girdwood
parent e76c236801
commit de889c554b
4 changed files with 32 additions and 0 deletions

View File

@ -31,3 +31,7 @@ endif()
if (CONFIG_MULTICORE)
add_subdirectory(idc)
endif()
if (CONFIG_LOADABLE_MODULES)
add_subdirectory(library_manager)
endif()

View File

@ -19,3 +19,5 @@ rsource "schedule/Kconfig"
rsource "ipc/Kconfig"
rsource "math/Kconfig"
rsource "library_manager/Kconfig"

View File

@ -220,4 +220,13 @@ endif # volume
must be provided by DTS for your target platform. If this library is not present
then compilation errors will occur.
For more information, please contact sales@xperi.com
config INTEL_MODULES
bool "Intel modules"
default n
depends on LIBRARY_MANAGER
help
Select for a Intel modules API implementation.
This will cause module adapter component to include IADK module
codec code. It will work only when LIBRARY_MANAGER is enabled.
endmenu

View File

@ -695,6 +695,23 @@ zephyr_library_sources_ifdef(CONFIG_COMP_MODULE_ADAPTER
${SOF_AUDIO_PATH}/module_adapter/module/generic.c
)
zephyr_library_sources_ifdef(CONFIG_LIBRARY_MANAGER
${SOF_SRC_PATH}/library_manager/lib_manager.c
${SOF_SRC_PATH}/library_manager/lib_notification.c
)
zephyr_include_directories_ifdef(CONFIG_INTEL_MODULES
${SOF_SRC_PATH}/include/sof/audio/module_adapter/iadk/
)
zephyr_library_sources_ifdef(CONFIG_INTEL_MODULES
${SOF_AUDIO_PATH}/module_adapter/module/iadk_modules.c
${SOF_AUDIO_PATH}/module_adapter/iadk/system_service.c
${SOF_AUDIO_PATH}/module_adapter/iadk/module_initial_settings_concrete.cpp
${SOF_AUDIO_PATH}/module_adapter/iadk/iadk_module_adapter.cpp
${SOF_AUDIO_PATH}/module_adapter/iadk/system_agent.cpp
)
if (CONFIG_COMP_MODULE_ADAPTER)
zephyr_library_sources_ifdef(CONFIG_CADENCE_CODEC
${SOF_AUDIO_PATH}/module_adapter/module/cadence.c