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:
parent
232cb657fc
commit
ba31cb55cd
|
@ -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})
|
||||
|
|
Loading…
Reference in a new issue