cmake: dts: Remove duplicates from DTS_ROOT

If duplicates gets passed to scripts/dts/gen_defines.py, the bindings in
those directories will be loaded twice and actually get in conflict with
itself.

Signed-off-by: Tobias Svehagen <tobias.svehagen@gmail.com>
This commit is contained in:
Tobias Svehagen 2019-11-06 14:51:25 +01:00 committed by Kumar Gala
parent 134eea2ff4
commit 4fc6a04eb1

View File

@ -33,6 +33,8 @@ list(APPEND
${ZEPHYR_BASE}
)
list(REMOVE_DUPLICATES DTS_ROOT)
set(dts_files
${DTS_SOURCE}
${shield_dts_files}