Skip to content

Commit cb3670c

Browse files
rluboscarlescufi
authored andcommitted
cmake: dts fixups
Trivial dts.cmake cleanups. Signed-off-by: Robert Lubos <[email protected]>
1 parent 7d29f3b commit cb3670c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmake/dts.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ list(APPEND
3232
${BOARD_DIR}
3333
${ZEPHYR_BASE}
3434
)
35+
list(REMOVE_DUPLICATES
36+
DTS_ROOT
37+
)
3538

3639
list(REMOVE_DUPLICATES DTS_ROOT)
3740

@@ -73,6 +76,7 @@ if(SUPPORTS_DTS)
7376
math(EXPR i "${i}+1")
7477
endforeach()
7578

79+
unset(DTS_ROOT_SYSTEM_INCLUDE_DIRS)
7680
foreach(dts_root ${DTS_ROOT})
7781
foreach(dts_root_path
7882
include
@@ -90,6 +94,7 @@ if(SUPPORTS_DTS)
9094
endforeach()
9195
endforeach()
9296

97+
unset(DTS_ROOT_BINDINGS)
9398
foreach(dts_root ${DTS_ROOT})
9499
set(full_path ${dts_root}/dts/bindings)
95100
if(EXISTS ${full_path})

0 commit comments

Comments
 (0)