1# SPDX-License-Identifier: Apache-2.0 2 3# LoRa drivers depend on the include directories exposed by the loramac-node 4# library. Hence, if it exists then the source files are added to that otherwise 5# a library with same name is created. 6if(TARGET loramac-node) 7 set(ZEPHYR_CURRENT_LIBRARY loramac-node) 8else() 9 zephyr_library_named(loramac-node) 10endif() 11 12zephyr_library_sources_ifdef(CONFIG_LORA_SHELL shell.c) 13zephyr_library_sources_ifdef(CONFIG_HAS_SEMTECH_RADIO_DRIVERS hal_common.c) 14zephyr_library_sources_ifdef(CONFIG_HAS_SEMTECH_RADIO_DRIVERS sx12xx_common.c) 15zephyr_library_sources_ifdef(CONFIG_LORA_SX127X sx127x.c) 16 17if (CONFIG_LORA_SX126X OR CONFIG_LORA_STM32WL_SUBGHZ_RADIO) 18 zephyr_library_sources(sx126x.c) 19endif() 20 21zephyr_library_sources_ifdef(CONFIG_LORA_SX126X sx126x_standalone.c) 22zephyr_library_sources_ifdef(CONFIG_LORA_STM32WL_SUBGHZ_RADIO sx126x_stm32wl.c) 23