From ba31cb55cd601609a0d5567bad2ce2abda9ffb19 Mon Sep 17 00:00:00 2001 From: Erwan Gouriou Date: Thu, 13 Sep 2018 16:25:53 +0200 Subject: [PATCH] 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 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 226d834181..aff3e489f3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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})