Build: Added support for out-of-tree Arch

Introduces the ARCH_ROOT argument, similar to BOARD_ROOT and SOC_ROOT.
This enables support for out-of-tree architectures.

The ARCH_ROOT out-of-tree layout is expected to be the following:
 * ${ARCH_ROOT}/arch/${ARCH}/
 * ${ARCH_ROOT}/include/arch/${ARCH}/ (Optional)

Signed-off-by: Klaus Petersen <kape@oticon.com>
This commit is contained in:
Klaus Petersen 2018-11-15 10:37:46 +01:00 committed by Anas Nashif
commit c66cb76fed
6 changed files with 13 additions and 4 deletions

View file

@ -1,4 +1,4 @@
add_definitions(-D__ZEPHYR_SUPERVISOR__)
add_subdirectory(common)
add_subdirectory(${ARCH})
add_subdirectory(${ARCH_DIR}/${ARCH} arch/${ARCH})