2020-07-31 00:01:18 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
zephyr_library()
|
|
|
|
zephyr_library_sources(buf.c)
|
|
|
|
zephyr_library_sources(smp.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_MCUMGR_SMP_BT smp_bt.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_MCUMGR_SMP_SHELL smp_shell.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_MCUMGR_SMP_UART smp_uart.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_MCUMGR_SMP_UDP smp_udp.c)
|
2022-04-04 21:19:47 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_MCUMGR_SMP_DUMMY smp_dummy.c)
|
2021-12-17 20:41:35 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_MCUMGR_SMP_REASSEMBLY smp_reassembly.c)
|
2021-06-09 19:34:21 +08:00
|
|
|
|
|
|
|
add_subdirectory(lib)
|
2020-07-31 00:01:18 +08:00
|
|
|
zephyr_library_link_libraries(MCUMGR)
|
|
|
|
|
|
|
|
if (CONFIG_MCUMGR_SMP_SHELL OR CONFIG_MCUMGR_SMP_UART)
|
|
|
|
zephyr_library_sources(serial_util.c)
|
2022-02-14 20:59:43 +08:00
|
|
|
endif()
|