Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 367
LLEXT multiple modules#9090
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
Uh oh!
There was an error while loading. Please reload this page.
LLEXT multiple modules #9090
Changes from all commits
aa998a1335882702835828b9803cd2cfe1cdf5392be8bb27d51740dfcb5693fFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,3 @@ | ||
| CONFIG_SAMPLE_SMART_AMP=m | ||
| CONFIG_COMP_MIXIN_MIXOUT=m | ||
| CONFIG_COMP_IIR=m |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # Copyright (c) 2024 Intel Corporation. | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm assuming this file will be shrunk/replaced when Zephyr llext cmake helpers are used ? | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # Hard-coded .text address to be moved to a common place | ||
| sof_llext_build("eq_iir" | ||
| SOURCES ../eq_iir.c | ||
| ../eq_iir_ipc4.c | ||
| ../eq_iir_generic.c | ||
| TEXT_ADDR 0xa06ea000 | ||
| ) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| #include <tools/rimage/config/platform.toml> | ||
| #define LOAD_TYPE "2" | ||
| #include "../eq_iir.toml" | ||
| [module] | ||
| count = __COUNTER__ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # Copyright (c) 2024 Intel Corporation. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # Hard-coded .text address to be moved to a common place | ||
| sof_llext_build("mixin_mixout" | ||
| SOURCES ../mixin_mixout.c | ||
| ../mixin_mixout_hifi3.c | ||
| ../mixin_mixout_hifi5.c | ||
| ../mixin_mixout_generic.c | ||
| TEXT_ADDR 0xa06aa000 | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| #include <tools/rimage/config/platform.toml> | ||
| #define LOAD_TYPE "2" | ||
| #include "../mixin_mixout.toml" | ||
| [module] | ||
| count = __COUNTER__ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| /* SPDX-License-Identifier: BSD-3-Clause */ | ||
| /* | ||
| * Copyright(c) 2024 Intel Corporation. All rights reserved. | ||
| */ | ||
| #ifndef MODULE_LLEXT_H | ||
| #define MODULE_LLEXT_H | ||
| #define SOF_LLEXT_MODULE_MANIFEST(manifest_name, entry, affinity, mod_uuid) \ | ||
| { \ | ||
| .module = { \ | ||
| .name = manifest_name, \ | ||
| .uuid = {mod_uuid}, \ | ||
| .entry_point = (uint32_t)(entry), \ | ||
| .type = { \ | ||
| .load_type = SOF_MAN_MOD_TYPE_LLEXT, \ | ||
| .domain_ll = 1, \ | ||
| }, \ | ||
| .affinity_mask = (affinity), \ | ||
| } \ | ||
| } | ||
| #define SOF_LLEXT_MOD_ENTRY(name, interface) \ | ||
| static const struct module_interface *name##_llext_entry(void *mod_cfg, \ | ||
| void *parent_ppl, void **mod_ptr) \ | ||
| { \ | ||
| return interface; \ | ||
| } | ||
| #define SOF_LLEXT_BUILDINFO \ | ||
| static const struct sof_module_api_build_info buildinfo __section(".mod_buildinfo") __used = { \ | ||
| .format = SOF_MODULE_API_BUILD_INFO_FORMAT, \ | ||
| .api_version_number.full = SOF_MODULE_API_CURRENT_VERSION, \ | ||
| } | ||
| #endif |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Err... no, please don't go from
.llextto.riand then BACK to.llextwhere each step is a different file type; this is incredibly confusing!One suggestion:
.llextbecause that's what comes from Zephyr so you don't have a choice?.ri0because that's the first rimage stage. Similar tozephyr_pre0.rior.llext.ri.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marc-hb yeah, .llext -> something else -> .llext is ugly, I agree. There was a wish to have .llext as the final suffix, but now with the use of Zephyr cmake .llext comes out of those functions. Maybe yes -
.llext.riwould be a good option for the final output