soc: support out of dir soc code

Just like boards, support also SoCs out of the tree.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2018-07-31 12:18:28 -05:00
commit 66b524a62a

View file

@ -195,6 +195,9 @@ set(CACHED_BOARD ${BOARD} CACHE STRING "Selected board")
if(NOT BOARD_ROOT) if(NOT BOARD_ROOT)
set(BOARD_ROOT ${ZEPHYR_BASE}) set(BOARD_ROOT ${ZEPHYR_BASE})
endif() 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) find_path(BOARD_DIR NAMES "${BOARD}_defconfig" PATHS ${BOARD_ROOT}/boards/*/* NO_DEFAULT_PATH)