Skip to content

Commit b328ec5

Browse files
committed
cmake: dts.cmake: Use SOC_PATH to find soc/dts.fixup
Per arch the path to the SOC dir that we would find dts.fixup varies between being ${CONFIG_SOC_FAMILY}/${CONFIG_SOC_SERIES} and just ${CONFIG_SOC}. The ${SOC_PATH} var handles defining this correct so use it instead when we define DTS_SOC_FIXUP_FILE. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
1 parent 440cc18 commit b328ec5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/dts.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ if(CONFIG_HAS_DTS)
8989
if(EXISTS ${DTS_BOARD_FIXUP_FILE})
9090
set(DTS_BOARD_FIXUP -f ${DTS_BOARD_FIXUP_FILE})
9191
endif()
92-
set_ifndef(DTS_SOC_FIXUP_FILE ${PROJECT_SOURCE_DIR}/arch/${ARCH}/soc/${CONFIG_SOC_FAMILY}/${CONFIG_SOC_SERIES}/dts.fixup)
92+
set_ifndef(DTS_SOC_FIXUP_FILE ${PROJECT_SOURCE_DIR}/arch/${ARCH}/soc/${SOC_PATH}/dts.fixup)
9393
if(EXISTS ${DTS_SOC_FIXUP_FILE})
9494
set(DTS_SOC_FIXUP -f ${DTS_SOC_FIXUP_FILE})
9595
endif()

0 commit comments

Comments
 (0)