1# 2# Copyright (c) 2024 Nordic Semiconductor ASA 3# 4# SPDX-License-Identifier: BSD-3-Clause 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 12if (CONFIG_NRF70_BUSLIB) 13 zephyr_library_named(nrf70-buslib) 14 zephyr_library_include_directories( 15 inc 16 ) 17 zephyr_library_sources( 18 rpu_hw_if.c 19 device.c 20 ) 21 zephyr_library_sources_ifdef(CONFIG_NRF70_ON_QSPI 22 qspi_if.c 23 ) 24 zephyr_library_sources_ifdef(CONFIG_NRF70_ON_SPI 25 spi_if.c 26 ) 27endif() 28