cmake: fix include directories to work with out-of-tree arch

Include directories for ${ARCH} is not specified correctly.
Several places in Zephyr, the include directories are specified as:
${ZEPHYR_BASE}/arch/${ARCH}/include
the correct line is:
${ARCH_DIR}/${ARCH}/include
to correctly support out of tree archs.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
This commit is contained in:
Torsten Rasmussen 2020-07-07 08:06:27 +02:00 committed by Anas Nashif
commit bb3946666f
6 changed files with 6 additions and 6 deletions

View file

@ -41,7 +41,7 @@ endif()
zephyr_include_directories_ifdef(
CONFIG_TRACING
${ZEPHYR_BASE}/kernel/include
${ZEPHYR_BASE}/arch/${ARCH}/include
${ARCH_DIR}/${ARCH}/include
)
zephyr_include_directories_ifdef(CONFIG_TRACING include)