From 4fc6a04eb157fdf475a9ba6def5a15d2c19a935b Mon Sep 17 00:00:00 2001 From: Tobias Svehagen Date: Wed, 6 Nov 2019 14:51:25 +0100 Subject: [PATCH] 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 --- cmake/dts.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/dts.cmake b/cmake/dts.cmake index ab16f92fea7..e0ab9ad5711 100644 --- a/cmake/dts.cmake +++ b/cmake/dts.cmake @@ -33,6 +33,8 @@ list(APPEND ${ZEPHYR_BASE} ) +list(REMOVE_DUPLICATES DTS_ROOT) + set(dts_files ${DTS_SOURCE} ${shield_dts_files}