cmake: Add zephyr base address when looking file into soc/

When checking availability of soc/${ARCH}/CMakeLists.txt,
we should use ${ZEPHYR_BASE} as path base.

Fixes #9956

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2018-09-13 16:25:53 +02:00 committed by Kumar Gala
parent 232cb657fc
commit ba31cb55cd

View file

@ -336,7 +336,7 @@ add_subdirectory(misc)
# property which is set implicitly for custom command outputs
include(misc/generated/CMakeLists.txt)
if(EXISTS soc/${ARCH}/CMakeLists.txt)
if(EXISTS ${SOC_DIR}/${ARCH}/CMakeLists.txt)
add_subdirectory(${SOC_DIR}/${ARCH} soc/${ARCH})
else()
add_subdirectory(${SOC_DIR}/${ARCH}/${SOC_PATH} soc/${ARCH}/${SOC_PATH})