Skip to content

[FEATURE] Implement module_init in Zephyr builds #5406

@kv2019i

Description

@kv2019i

Is your feature request related to a problem? Please describe.
With Zephyr builds, each module init needs to be called separately.

In XTOS builds we have:
• With XTOS builds, we use sof/src/include/sof/audio/component.h
#define DECLARE_MODULE(init) attribute((used))
» __section(".module_init") static void(*f##init)(void) = init
• And then sof/src/schedule/task.c:sys_module_init() makes the calls based on linker data

Describe the solution you'd like
Solution aligned with Zephyr where each module init call doesn't have to be added to wrapper.c

FYI @lgirdwood

Metadata

Metadata

Assignees

Labels

ZephyrIssues only observed with Zephyr integratedenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions