Skip to content

Commit

Permalink
cmake: dts: allow default dts bindings dir to be overwritten
Browse files Browse the repository at this point in the history
For testing the default dts bindings can now be replaced by
test versions.

Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
  • Loading branch information
b0661 committed Jul 4, 2018
1 parent 44380cc commit 154137f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/dts.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ if(CONFIG_HAS_DTS)

# Run extract_dts_includes.py for the header file
# generated_dts_board.h
set_ifndef(DTS_BINDINGS_DIR ${ZEPHYR_BASE}/dts/bindings)
set_ifndef(DTS_BOARD_FIXUP_FILE ${BOARD_ROOT}/boards/${ARCH}/${BOARD_FAMILY}/dts.fixup)
if(EXISTS ${DTS_BOARD_FIXUP_FILE})
set(DTS_BOARD_FIXUP ${DTS_BOARD_FIXUP_FILE})
Expand All @@ -105,7 +106,7 @@ if(CONFIG_HAS_DTS)

set(CMD_EXTRACT_DTS_INCLUDES ${PYTHON_EXECUTABLE} ${ZEPHYR_BASE}/scripts/dts/extract_dts_includes.py
--dts ${BOARD}.dts_compiled
--yaml ${ZEPHYR_BASE}/dts/bindings
--yaml ${DTS_BINDINGS_DIR}
${DTS_FIXUPS}
--keyvalue ${GENERATED_DTS_BOARD_CONF}
--include ${GENERATED_DTS_BOARD_H}
Expand Down

0 comments on commit 154137f

Please sign in to comment.