From 66b524a62a590f07e3f75a1881cea24caf42bcdb Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 31 Jul 2018 12:18:28 -0500 Subject: [PATCH] soc: support out of dir soc code Just like boards, support also SoCs out of the tree. Signed-off-by: Anas Nashif --- cmake/app/boilerplate.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/app/boilerplate.cmake b/cmake/app/boilerplate.cmake index 725a209c397..58e3ab7e366 100644 --- a/cmake/app/boilerplate.cmake +++ b/cmake/app/boilerplate.cmake @@ -195,6 +195,9 @@ set(CACHED_BOARD ${BOARD} CACHE STRING "Selected board") if(NOT BOARD_ROOT) set(BOARD_ROOT ${ZEPHYR_BASE}) endif() +if(NOT SOC_ROOT) + set(SOC_ROOT ${ZEPHYR_BASE}) +endif() find_path(BOARD_DIR NAMES "${BOARD}_defconfig" PATHS ${BOARD_ROOT}/boards/*/* NO_DEFAULT_PATH)