From d34f11fcf12f41efa27a3487d229971592049caa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Ku=C5=BAnia?= Date: Wed, 6 Nov 2024 16:00:37 +0100 Subject: [PATCH] softdevice_controller: Add SDC include dir globally MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The sdc_soc.h header file is now needed in nrfx_glue.h to set-up event system resource reservations. This requires the header file to be available globally within the build system. Without this change, external libraries that transitively include nrfx_glue.h through zephyr/kernel.h cannot be built. One of such libraries is Matter. Signed-off-by: Rafał Kuźnia --- softdevice_controller/CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/softdevice_controller/CMakeLists.txt b/softdevice_controller/CMakeLists.txt index b28374c102..afd952e749 100644 --- a/softdevice_controller/CMakeLists.txt +++ b/softdevice_controller/CMakeLists.txt @@ -5,10 +5,7 @@ # if (CONFIG_BT_LL_SOFTDEVICE_HEADERS_INCLUDE AND NOT CONFIG_BT_LL_SOFTDEVICE_HEADERS_INCLUDE_PATH_OVERRIDE) - zephyr_interface_library_named (SOFTDEVICE_CONTROLLER_LIB_HEADERS) - target_include_directories(SOFTDEVICE_CONTROLLER_LIB_HEADERS - INTERFACE include) - zephyr_link_libraries(INTERFACE SOFTDEVICE_CONTROLLER_LIB_HEADERS) + zephyr_include_directories(include) endif() if(CONFIG_BT_LL_SOFTDEVICE AND CONFIG_BT_LL_SOFTDEVICE_BUILD_TYPE_LIB)