cmake: dts fixups
Trivial dts.cmake cleanups. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
parent
7d29f3b06e
commit
cb3670c1b5
1 changed files with 5 additions and 0 deletions
|
@ -32,6 +32,9 @@ list(APPEND
|
||||||
${BOARD_DIR}
|
${BOARD_DIR}
|
||||||
${ZEPHYR_BASE}
|
${ZEPHYR_BASE}
|
||||||
)
|
)
|
||||||
|
list(REMOVE_DUPLICATES
|
||||||
|
DTS_ROOT
|
||||||
|
)
|
||||||
|
|
||||||
list(REMOVE_DUPLICATES DTS_ROOT)
|
list(REMOVE_DUPLICATES DTS_ROOT)
|
||||||
|
|
||||||
|
@ -73,6 +76,7 @@ if(SUPPORTS_DTS)
|
||||||
math(EXPR i "${i}+1")
|
math(EXPR i "${i}+1")
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
unset(DTS_ROOT_SYSTEM_INCLUDE_DIRS)
|
||||||
foreach(dts_root ${DTS_ROOT})
|
foreach(dts_root ${DTS_ROOT})
|
||||||
foreach(dts_root_path
|
foreach(dts_root_path
|
||||||
include
|
include
|
||||||
|
@ -90,6 +94,7 @@ if(SUPPORTS_DTS)
|
||||||
endforeach()
|
endforeach()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
unset(DTS_ROOT_BINDINGS)
|
||||||
foreach(dts_root ${DTS_ROOT})
|
foreach(dts_root ${DTS_ROOT})
|
||||||
set(full_path ${dts_root}/dts/bindings)
|
set(full_path ${dts_root}/dts/bindings)
|
||||||
if(EXISTS ${full_path})
|
if(EXISTS ${full_path})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue