From c8080d8eccbb1cbd63e9a8fc992cc59e300ce5e0 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Thu, 21 Jul 2022 10:22:13 -0400 Subject: [PATCH] cmake: also include files from include/ SoCs can have different headers, make the build system include those if the directory exists for this SoC. Signed-off-by: Anas Nashif --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index abee3a39fc5a3c..71c6a67e12d435 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -122,6 +122,7 @@ include(${ZEPHYR_BASE}/cmake/linker_script/${ARCH}/linker.cmake OPTIONAL) foreach(optional_include_dir ${SOC_DIR}/${ARCH}/${SOC_PATH} ${SOC_DIR}/${ARCH}/${SOC_PATH}/include + ${SOC_DIR}/${ARCH}/${SOC_PATH}/include/${SOC_NAME} ${SOC_DIR}/${ARCH}/${SOC_FAMILY}/include ${SOC_DIR}/${ARCH}/${SOC_FAMILY}/common/include )