mirror of https://github.com/thesofproject/sof.git
llext: don't build if CONFIG_LLEXT=n
Not all configurations need LLEXT, don't include LLEXT support in such cases. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
parent
1673b1097e
commit
c79628308f
|
@ -11,10 +11,16 @@
|
|||
struct comp_driver;
|
||||
struct comp_ipc_config;
|
||||
|
||||
#if CONFIG_LLEXT
|
||||
uintptr_t llext_manager_allocate_module(struct processing_module *proc,
|
||||
const struct comp_ipc_config *ipc_config,
|
||||
const void *ipc_specific_config);
|
||||
|
||||
int llext_manager_free_module(const uint32_t component_id);
|
||||
#else
|
||||
#define llext_manager_allocate_module(proc, ipc_config, ipc_specific_config) 0
|
||||
#define llext_manager_free_module(component_id) 0
|
||||
#define llext_unload(ext) 0
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -29,7 +29,9 @@
|
|||
|
||||
#include <zephyr/cache.h>
|
||||
#include <zephyr/drivers/mm/system_mm.h>
|
||||
#if CONFIG_LLEXT
|
||||
#include <zephyr/llext/llext.h>
|
||||
#endif
|
||||
|
||||
#if CONFIG_LIBRARY_AUTH_SUPPORT
|
||||
#include <auth/intel_auth_api.h>
|
||||
|
|
|
@ -648,7 +648,7 @@ zephyr_library_sources_ifdef(CONFIG_LIBRARY_MANAGER
|
|||
${SOF_SRC_PATH}/library_manager/lib_notification.c
|
||||
)
|
||||
|
||||
if (CONFIG_MM_DRV)
|
||||
if (CONFIG_MM_DRV AND CONFIG_LLEXT)
|
||||
zephyr_library_sources_ifdef(CONFIG_LIBRARY_MANAGER
|
||||
${SOF_SRC_PATH}/library_manager/llext_manager.c
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue