Skip to content

Commit 77b125a

Browse files
agansarigalak
authored andcommitted
cmake: pass extra dtc flags to python scripts
Pass arguments as command line from cmake to python. Extra DTC flags are used later on to check errors in python. Signed-off-by: Andrei Gansari <[email protected]>
1 parent 0a699f7 commit 77b125a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/dts.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ if(SUPPORTS_DTS)
195195

196196
set(CMD_NEW_EXTRACT ${PYTHON_EXECUTABLE} ${ZEPHYR_BASE}/scripts/dts/gen_defines.py
197197
--dts ${BOARD}.dts.pre.tmp
198+
--dtc-flags '${EXTRA_DTC_FLAGS}'
198199
--bindings-dirs ${DTS_ROOT_BINDINGS}
199200
--conf-out ${DEVICETREE_CONF}
200201
--header-out ${DEVICETREE_UNFIXED_H}

0 commit comments

Comments
 (0)