2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-08-05 05:49:12 +08:00
|
|
|
zephyr_library()
|
2019-02-19 18:17:51 +08:00
|
|
|
|
2021-08-05 05:49:12 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_MODEM_RECEIVER modem_receiver.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_MODEM_SHELL modem_shell.c)
|
|
|
|
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_MODEM_CONTEXT
|
2019-08-07 23:01:00 +08:00
|
|
|
modem_context.c
|
|
|
|
modem_pin.c
|
|
|
|
)
|
|
|
|
|
2021-08-05 05:49:12 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_MODEM_IFACE_UART modem_iface_uart.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_MODEM_CMD_HANDLER modem_cmd_handler.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_MODEM_SOCKET modem_socket.c)
|
2019-08-07 23:02:00 +08:00
|
|
|
|
2019-08-07 23:06:00 +08:00
|
|
|
if(CONFIG_MODEM_UBLOX_SARA)
|
2019-05-18 01:14:00 +08:00
|
|
|
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/net/ip)
|
|
|
|
zephyr_library_sources(ublox-sara-r4.c)
|
|
|
|
endif()
|
|
|
|
|
2020-11-23 22:54:31 +08:00
|
|
|
if(CONFIG_MODEM_QUECTEL_BG9X)
|
|
|
|
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/net/ip)
|
|
|
|
zephyr_library_sources(quectel-bg9x.c)
|
|
|
|
endif()
|
|
|
|
|
2019-02-19 18:17:51 +08:00
|
|
|
if(CONFIG_MODEM_WNCM14A2A)
|
|
|
|
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/net/ip)
|
|
|
|
zephyr_library_sources(wncm14a2a.c)
|
|
|
|
endif()
|
2020-01-02 18:41:07 +08:00
|
|
|
|
|
|
|
if(CONFIG_MODEM_GSM_PPP)
|
|
|
|
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/net/ip)
|
|
|
|
zephyr_library_sources(gsm_ppp.c)
|
|
|
|
endif()
|
2020-08-28 04:43:58 +08:00
|
|
|
|
|
|
|
if (CONFIG_MODEM_HL7800)
|
|
|
|
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/net/ip)
|
|
|
|
zephyr_library_sources(hl7800.c)
|
|
|
|
endif()
|
2021-08-27 16:21:14 +08:00
|
|
|
|
|
|
|
if (CONFIG_MODEM_SIM7080)
|
|
|
|
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/net/ip)
|
|
|
|
zephyr_library_sources(simcom-sim7080.c)
|
|
|
|
endif()
|