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