Hello,
We are developing a custom Zephyr module that we would like to include into multiple projects.
After a lot of testing and debugging we ran into a very weird issue that we cannot explain.
The module looks like this:
Where the CMakeLists.txt looks like this:
And the zephyr/module.yml like this:
The project's CMakeLists.txt looks like this:
The module is added to the project using west, like this:
This all works fine and all the modules are correctly loaded after using 'west update'. However, when building the project I get a lot of errors that the module cannot find certain configs and files (just a small part of the error):
However, now the weird part which took me a lot of time and mainly luck to figure out. When I only remove the module lines from the west.yml file (not the module files themselves) and execute the 'west update' command again the build succeeds. As soon as I configure the module again in the west.yml file and use 'west update', (so the exact same files are checked out) the build fails again with the same errors.
How does the west.yml influence the build process and how can I solve this problem?
Thank you.