1# 2# Copyright (c) 2024 Nordic Semiconductor ASA 3# 4# SPDX-License-Identifier: Apache-2.0 5# 6 7# Check if ZEPHYR_BASE is set 8if(NOT DEFINED ENV{ZEPHYR_BASE}) 9 message(FATAL_ERROR "ZEPHYR_BASE environment variable is not set. Please set it to the Zephyr base directory.") 10endif() 11 12set(NRF_WIFI_DIR ${ZEPHYR_CURRENT_MODULE_DIR}) 13 14if (CONFIG_NRF70_BUSLIB) 15 zephyr_library_named(nrf70-buslib) 16 zephyr_library_include_directories( 17 inc 18 ${NRF_WIFI_DIR}/os_if/inc 19 ) 20 zephyr_library_sources( 21 rpu_hw_if.c 22 device.c 23 ) 24 if(NOT CONFIG_WIFI_NRF70) 25 zephyr_library_sources( 26 ${NRF_WIFI_DIR}/os_if/src/osal.c 27 ) 28 endif() 29 zephyr_library_sources_ifdef(CONFIG_NRF70_ON_QSPI 30 qspi_if.c 31 ) 32 zephyr_library_sources_ifdef(CONFIG_NRF70_ON_SPI 33 spi_if.c 34 ) 35endif() 36