Skip to content

module: How to express build time inter-module dependencies #50410

Closed Answered by tejlmand
yashi asked this question in Q&A
Discussion options

You must be logged in to vote

but doesn't seem to manage the order of builds when parallel. Is there a way to express build time dependencies between two Zephyr modules?

The depends: <module> in module.yml is only ensuring:

  • The referred module is available in the system
  • The CMakeLists.txt file in the referred module will be processed before the CMakeLists.txt file in this module.
  • Additional roots in the referred module will take precedence over roots in this module

there are no build time dependencies between CMake targets created in the two modules.

Target dependencies to ensure correct build order must be controlled using CMake dependency handling, for example:
https://cmake.org/cmake/help/latest/command/add_dep…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by yashi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants