Skip to content

Commit

Permalink
softdevice_controller: Add SDC include dir globally
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
e-rk committed Nov 19, 2024
1 parent 4f3ed25 commit d34f11f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions softdevice_controller/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d34f11f

Please sign in to comment.