Skip to content

Commit d7fb46a

Browse files
nrbrookcfriedt
authored andcommitted
cmake: Merge in DTS_ROOT from sysbuild
Merging in DTS_ROOT from sysbuild allows applications to specify a custom DTS_ROOT path for the application via sysbuild. Signed-off-by: Nick Brook <[email protected]>
1 parent b5ab475 commit d7fb46a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/modules/root.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# - BOARD_ROOT: CMake list of board roots containing board and shield implementations
1414
# - MODULE_EXT_ROOT: CMake list of module external roots containing module glue code
1515
# - SCA_ROOT: CMake list of SCA roots containing static code analysis integration code
16+
# - DTS_ROOT: CMake list of DTS roots containing device tree bindings or includes
1617
#
1718
# If a root is defined it will check the list of paths in the root and convert
1819
# any relative path to absolute path and update the root list.
@@ -29,6 +30,7 @@ zephyr_get(SOC_ROOT MERGE SYSBUILD GLOBAL)
2930
zephyr_get(ARCH_ROOT MERGE SYSBUILD GLOBAL)
3031
zephyr_get(SCA_ROOT MERGE SYSBUILD GLOBAL)
3132
zephyr_get(SNIPPET_ROOT MERGE SYSBUILD GLOBAL)
33+
zephyr_get(DTS_ROOT MERGE SYSBUILD GLOBAL)
3234

3335
# Convert paths to absolute, relative from APPLICATION_SOURCE_DIR
3436
zephyr_file(APPLICATION_ROOT MODULE_EXT_ROOT)
@@ -37,6 +39,7 @@ zephyr_file(APPLICATION_ROOT SOC_ROOT)
3739
zephyr_file(APPLICATION_ROOT ARCH_ROOT)
3840
zephyr_file(APPLICATION_ROOT SCA_ROOT)
3941
zephyr_file(APPLICATION_ROOT SNIPPET_ROOT)
42+
zephyr_file(APPLICATION_ROOT DTS_ROOT)
4043

4144
if(unittest IN_LIST Zephyr_FIND_COMPONENTS)
4245
# Zephyr used in unittest mode, use dedicated unittest root.

0 commit comments

Comments
 (0)