You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE/BUG] method to express llext module link dependencies to other lletx modules #9941
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).
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).
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
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
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).
Activity
kv2019i commentedon Apr 1, 2025
FYI @lyakh @ujfalusi @lgirdwood
[-][FEATURE] method to express llext module link dependenciesneed to be[/-][+][FEATURE] method to express llext module link dependencies to other lletx modules[/+][-][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[/+]kv2019i commentedon Apr 1, 2025
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).