dts: Reduce include paths for building dts

Drop a few paths from when we preprocess the dts.  This is to reduce
creep of where #defines might get resolved from.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2018-10-03 09:09:32 -05:00 committed by Kumar Gala
commit c361405e90

View file

@ -86,14 +86,12 @@ if(CONFIG_HAS_DTS)
COMMAND ${CMAKE_C_COMPILER} COMMAND ${CMAKE_C_COMPILER}
-x assembler-with-cpp -x assembler-with-cpp
-nostdinc -nostdinc
-I${ZEPHYR_BASE}/soc/${ARCH}
-isystem ${ZEPHYR_BASE}/include -isystem ${ZEPHYR_BASE}/include
-isystem ${ZEPHYR_BASE}/dts/${ARCH} -isystem ${ZEPHYR_BASE}/dts/${ARCH}
-isystem ${ZEPHYR_BASE}/dts -isystem ${ZEPHYR_BASE}/dts
-include ${AUTOCONF_H} -include ${AUTOCONF_H}
${DTC_INCLUDE_FLAG_FOR_DTS} # include the DTS source and overlays ${DTC_INCLUDE_FLAG_FOR_DTS} # include the DTS source and overlays
-I${ZEPHYR_BASE}/dts/common -I${ZEPHYR_BASE}/dts/common
-I${ZEPHYR_BASE}/drivers
-undef -D__DTS__ -undef -D__DTS__
-P -P
-E ${ZEPHYR_BASE}/misc/empty_file.c -E ${ZEPHYR_BASE}/misc/empty_file.c