cmake: dts: Allow DTS_BOARD_FIXUP_FILE to be defined anywhere
Allow for DTS_BOARD_FIXUP_FILE to be defined in other locations (ie by board directory code). Thus allow the board to set any location to find the fixup file. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
4c424616bd
commit
b37cfd6478
|
@ -85,7 +85,7 @@ if(CONFIG_HAS_DTS)
|
|||
|
||||
# Run extract_dts_includes.py for the header file
|
||||
# generated_dts_board.h
|
||||
set(DTS_BOARD_FIXUP_FILE ${PROJECT_SOURCE_DIR}/dts/${ARCH}/${BOARD_FAMILY}.fixup)
|
||||
set_ifndef(DTS_BOARD_FIXUP_FILE ${PROJECT_SOURCE_DIR}/dts/${ARCH}/${BOARD_FAMILY}.fixup)
|
||||
if(EXISTS ${DTS_BOARD_FIXUP_FILE})
|
||||
set(DTS_BOARD_FIXUP -f ${DTS_BOARD_FIXUP_FILE})
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue