From 41e43111dc6a128dfd35cf9acda9e6f3afa26b7c Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Thu, 15 Nov 2018 21:27:13 -0600 Subject: [PATCH] cmake: Remove global include of board dir Remove having ${BOARD_DIR} in the global include path for Zephyr builds. Needed to add this to the arch/posix because of how posix "boards" define various things like interrupt handling. Signed-off-by: Kumar Gala --- CMakeLists.txt | 1 - arch/posix/CMakeLists.txt | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a282b51163b..b4fc6b22816 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,7 +53,6 @@ zephyr_include_directories( ${SOC_DIR}/${ARCH}/${SOC_PATH} ${SOC_DIR}/${ARCH}/${SOC_PATH}/include ${SOC_DIR}/${ARCH}/${SOC_FAMILY}/include - ${BOARD_DIR} include include/drivers ${PROJECT_BINARY_DIR}/include/generated diff --git a/arch/posix/CMakeLists.txt b/arch/posix/CMakeLists.txt index d4e17df902b..6cd64dcbf91 100644 --- a/arch/posix/CMakeLists.txt +++ b/arch/posix/CMakeLists.txt @@ -9,6 +9,8 @@ zephyr_compile_options( -include ${ZEPHYR_BASE}/arch/posix/include/posix_cheats.h ) +zephyr_include_directories(${BOARD_DIR}) + zephyr_compile_options_ifdef(CONFIG_COVERAGE -fprofile-arcs -ftest-coverage