Skip to content

Conversation

@57300
Copy link
Contributor

@57300 57300 commented Apr 2, 2025

Upstream PR #: 87962

MODULE_EXT_ROOT allows Zephyr modules to provide glue code for Zephyr modules using cmake-ext: True and/or kconfig-ext:True.

A module ext root provides a modules.cmake file which defines variables like: set(ZEPHYR_FOO_CMAKE_DIR <glue-code-path>/foo)

It is intended that a downstream module can replace Zephyr's default glue code, which again can be replaced further downstream.

Setting values in first modules.cmake (Zephyr's) are replaced by later processed modules.cmake (downstream) when the setting name is identical.

Therefore the module ext root list should not be reversed, and Zephyr itself should be placed as first entry in the list.

Signed-off-by: Torsten Rasmussen [email protected]
(cherry picked from commit 83976563b4175e72841b002d35350abb16c6aea8)

Upstream PR #: 87962

MODULE_EXT_ROOT allows Zephyr modules to provide glue code for Zephyr
modules using `cmake-ext: True` and/or `kconfig-ext:True`.

A module ext root provides a `modules.cmake` file which defines
variables like: `set(ZEPHYR_FOO_CMAKE_DIR  <glue-code-path>/foo)`

It is intended that a downstream module can replace Zephyr's default
glue code, which again can be replaced further downstream.

Setting values in first modules.cmake (Zephyr's) are replaced by later
processed modules.cmake (downstream) when the setting name is identical.

Therefore the module ext root list should not be reversed, and Zephyr
itself should be placed as first entry in the list.

Signed-off-by: Torsten Rasmussen <[email protected]>
(cherry picked from commit 83976563b4175e72841b002d35350abb16c6aea8)
@sonarqubecloud
Copy link

sonarqubecloud bot commented Apr 2, 2025

@nordicjm nordicjm merged commit 157e123 into nrfconnect:main Apr 2, 2025
22 checks passed
@57300 57300 deleted the pick-87962 branch April 9, 2025 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants