Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LLEXT: build libraries #9702

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

LLEXT: build libraries #9702

wants to merge 6 commits into from

Conversation

lyakh
Copy link
Collaborator

@lyakh lyakh commented Dec 2, 2024

Extends #9688 with library build support. Needs zephyrproject-rtos/zephyr#82443

Update to a Zephyr version, supporting LLEXT_FORCE_ALL_MODULAR building

Signed-off-by: Guennadi Liakhovetski <[email protected]>
@lyakh lyakh marked this pull request as ready for review December 9, 2024 14:11
@lyakh lyakh added the DNM Do Not Merge tag label Dec 9, 2024
@lyakh
Copy link
Collaborator Author

lyakh commented Dec 9, 2024

Can be reviewed but shouldn't be merged yet because of a zephyrproject-rtos/zephyr#82735 Zephyr dependency

Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - let get the Zephyr part merged first.

@lyakh
Copy link
Collaborator Author

lyakh commented Dec 9, 2024

one more change that has to be done before merging: actually only PTL should be converted to library style so far, convert it back to draft to really avoid accidental merge

@lyakh lyakh marked this pull request as draft December 9, 2024 16:20
Add a parameter to sof_llext_build() to support adding modules to
libraries. Specifying a LIB parameter in that function with a single
value adds that module to a library with that name if packing modules
into libraries is enabled.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
@lyakh lyakh force-pushed the llext-lib branch 3 times, most recently from c2e94c9 to d06a770 Compare December 10, 2024 12:04
Add a FORCE_ALL_MODULES macro to mtl.toml.h. When this header is then
preprocessed with that macro defined, all module TOML files will be
included. This then can be used to generate module libraries, which
we also enable in this patch.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
Detached sections are allowed to overlap, their addresses won't be
used at run-time.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
Add all supported modules to the main SOF library, loaded by default
at boot-time.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
Build libraries of modules, as specified in their cmake files.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DNM Do Not Merge tag
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants