2019-07-21 04:18:03 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2020-07-05 23:54:31 +08:00
|
|
|
# LoRa drivers depend on the include directories exposed by the loramac-node
|
|
|
|
# library. Hence, if it exists then the source files are added to that otherwise
|
|
|
|
# a library with same name is created.
|
|
|
|
if(TARGET loramac-node)
|
|
|
|
set(ZEPHYR_CURRENT_LIBRARY loramac-node)
|
|
|
|
else()
|
|
|
|
zephyr_library_named(loramac-node)
|
|
|
|
endif()
|
2019-07-21 04:18:03 +08:00
|
|
|
|
2020-04-16 07:35:04 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_LORA_SHELL shell.c)
|
2020-05-05 01:23:59 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_HAS_SEMTECH_RADIO_DRIVERS hal_common.c)
|
2020-05-05 16:16:32 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_HAS_SEMTECH_RADIO_DRIVERS sx12xx_common.c)
|
2021-01-25 10:04:22 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_LORA_SX127X sx127x.c)
|
2021-07-04 02:06:31 +08:00
|
|
|
|
|
|
|
if (CONFIG_LORA_SX126X OR CONFIG_LORA_STM32WL_SUBGHZ_RADIO)
|
|
|
|
zephyr_library_sources(sx126x.c)
|
|
|
|
endif()
|
|
|
|
|
2021-07-04 02:06:31 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_LORA_SX126X sx126x_standalone.c)
|
2021-07-04 02:06:31 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_LORA_STM32WL_SUBGHZ_RADIO sx126x_stm32wl.c)
|