2020-03-04 22:24:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
# lorawan.c depends 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()
|
|
|
|
|
|
|
|
zephyr_compile_definitions_ifdef(CONFIG_LORAMAC_REGION_AS923 REGION_AS923)
|
|
|
|
zephyr_compile_definitions_ifdef(CONFIG_LORAMAC_REGION_AU915 REGION_AU915)
|
|
|
|
zephyr_compile_definitions_ifdef(CONFIG_LORAMAC_REGION_CN470 REGION_CN470)
|
|
|
|
zephyr_compile_definitions_ifdef(CONFIG_LORAMAC_REGION_CN779 REGION_CN779)
|
|
|
|
zephyr_compile_definitions_ifdef(CONFIG_LORAMAC_REGION_EU433 REGION_EU433)
|
|
|
|
zephyr_compile_definitions_ifdef(CONFIG_LORAMAC_REGION_EU868 REGION_EU868)
|
|
|
|
zephyr_compile_definitions_ifdef(CONFIG_LORAMAC_REGION_KR920 REGION_KR920)
|
|
|
|
zephyr_compile_definitions_ifdef(CONFIG_LORAMAC_REGION_IN865 REGION_IN865)
|
|
|
|
zephyr_compile_definitions_ifdef(CONFIG_LORAMAC_REGION_US915 REGION_US915)
|
|
|
|
zephyr_compile_definitions_ifdef(CONFIG_LORAMAC_REGION_RU864 REGION_RU864)
|
|
|
|
|
2024-01-15 07:41:05 +08:00
|
|
|
if(CONFIG_LORAWAN)
|
|
|
|
if(CONFIG_LORAWAN_EMUL)
|
|
|
|
zephyr_library_sources(lorawan_emul.c)
|
|
|
|
else()
|
|
|
|
zephyr_library_sources(lorawan.c)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
zephyr_library_sources(lw_priv.c)
|
|
|
|
endif()
|
2022-08-22 23:32:34 +08:00
|
|
|
|
|
|
|
add_subdirectory(services)
|
2022-01-03 19:32:18 +08:00
|
|
|
add_subdirectory(nvm)
|