Skip to content

Commit 8d90ba6

Browse files
committed
modules: nrf_wifi: Include OSAL lib in buslib compilation
With introduction of OSAL wrapper for memory allocation, usage of zephyr's native malloc calls need to be removed. When NRF70 driver is not enabled, OSAL needs to be built explicitly. Signed-off-by: Ravi Dondaputi <[email protected]>
1 parent 0cc25b3 commit 8d90ba6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

modules/nrf_wifi/bus/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,23 @@ if(NOT DEFINED ENV{ZEPHYR_BASE})
99
message(FATAL_ERROR "ZEPHYR_BASE environment variable is not set. Please set it to the Zephyr base directory.")
1010
endif()
1111

12+
set(NRF_WIFI_DIR ${ZEPHYR_CURRENT_MODULE_DIR})
13+
1214
if (CONFIG_NRF70_BUSLIB)
1315
zephyr_library_named(nrf70-buslib)
1416
zephyr_library_include_directories(
1517
inc
18+
${NRF_WIFI_DIR}/os_if/inc
1619
)
1720
zephyr_library_sources(
1821
rpu_hw_if.c
1922
device.c
2023
)
24+
if(NOT CONFIG_WIFI_NRF70)
25+
zephyr_library_sources(
26+
${NRF_WIFI_DIR}/os_if/src/osal.c
27+
)
28+
endif()
2129
zephyr_library_sources_ifdef(CONFIG_NRF70_ON_QSPI
2230
qspi_if.c
2331
)

0 commit comments

Comments
 (0)