-
In the current example application (https://github.com/zephyrproject-rtos/example-application) there is a I cannot find any mention of this mechanism anywhere in the documentation. It might very well be that I haven't fully understood west and its magic, but I really can't find where it says that this is allowed and working inside an application folder of a T2 topology. Or if not specific to the application folder, how it is setup in general. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Here you go @skryptx: |
Beta Was this translation helpful? Give feedback.
-
I've read this section multiple times and it does not tell me how the module discovery process works. There is this section https://docs.zephyrproject.org/latest/develop/modules.html#module-inclusion which explains it somewhat, but not completely. My questions is: How do modules get found? Is it with the In essence I'm asking how |
Beta Was this translation helpful? Give feedback.
-
I've found my answer why the manifest repository is a "project" and is included in So this feature, that the manifest repository in T2 can simultaneously be a module, is based on the In my opinion this could be explained more clearly in the documentation that any project listed in the manifest files PLUS the manifest repository are considered projects with all the features they can have, including being a module, as long as they satisfy the conditions mentioned in the module inclusion section. |
Beta Was this translation helpful? Give feedback.
-
@skryptx you seem to have come to the right conclusions yourself. The module discovery logic, including the manifest repository as a module (eg. example-application) is located here: https://github.com/zephyrproject-rtos/zephyr/blob/main/cmake/modules/zephyr_module.cmake which in turn invokes this script here: https://github.com/zephyrproject-rtos/zephyr/blob/main/scripts/zephyr_module.py and that script uses the west APIs (eg. |
Beta Was this translation helpful? Give feedback.
-
@skryptx we'd be very grateful if you could send a Pull Request with the missing documentation bits, we always welcome contributions! cc @tejlmand. |
Beta Was this translation helpful? Give feedback.
I've found my answer why the manifest repository is a "project" and is included in
west list
. See zephyrproject-rtos/west#327So this feature, that the manifest repository in T2 can simultaneously be a module, is based on the
west list
behavior, which confirmed in the module inclusion link I posted above.In my opinion this could be explained more clearly in the documentation that any project listed in the manifest files PLUS the manifest repository are considered projects with all the features they can have, including being a module, as long as they satisfy the conditions mentioned in the module inclusion section.