Skip to content

[FEATURE/BUG] method to express llext module link dependencies to other lletx modules #9941

Closed

Description

@kv2019i

Is your feature request related to a problem? Please describe.
Currently llext modules need to be added to build linkage in order of dependecies. With cmake rules distributed into multiple directories, this is a very brittle system and errors are not seen seen at build time (as the dependencies are resolved at runtime).

This request stems from #9912 and commit 9dfc213

To make modules using (loadable) math modules work, the math modules need to be introducted in build first.

Describe the solution you'd like
Some cmake tool to declare dependencies. Either different lists of auxiliary moduless (that always get added first), or a runtime solution (some method to load the dependencies first, and only then proceed with dependents).

Describe alternatives you've considered

Additional context
#9912 discussions

Activity

  1. kv2019i commented on Apr 1, 2025

    @kv2019i
    CollaboratorAuthor
  2. changed the title [-][FEATURE] method to express llext module link dependenciesneed to be[/-] [+][FEATURE] method to express llext module link dependencies to other lletx modules[/+] on Apr 1, 2025
  3. added
    ZephyrIssues only observed with Zephyr integrated
    bugSomething isn't working as expected
    on Apr 1, 2025
  4. changed the title [-][FEATURE] method to express llext module link dependencies to other lletx modules[/-] [+][FEATURE/BUG] method to express llext module link dependencies to other lletx modules[/+] on Apr 1, 2025
  5. kv2019i commented on Apr 1, 2025

    @kv2019i
    CollaboratorAuthor

    Turning this into a bug. It seems the ordering is defined by xtensa-build-zephyr.py:install_lib() so current library builds (with aux modules) are subject to os.scandir() ordering (which is not guaranteed).

  6. added
    P2Critical bugs or normal features
    on Apr 1, 2025
  7. added this to the v2.13 milestone on Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Critical bugs or normal featuresZephyrIssues only observed with Zephyr integratedbugSomething isn't working as expectedenhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions