2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2019-09-23 07:44:43 +08:00
|
|
|
if(NOT CONFIG_LOG_MINIMAL)
|
|
|
|
zephyr_sources_ifdef(
|
|
|
|
CONFIG_LOG
|
|
|
|
log_list.c
|
|
|
|
log_core.c
|
|
|
|
log_msg.c
|
|
|
|
log_output.c
|
2018-05-16 14:50:33 +08:00
|
|
|
)
|
|
|
|
|
2020-11-20 00:25:03 +08:00
|
|
|
zephyr_sources_ifdef(
|
|
|
|
CONFIG_LOG2
|
|
|
|
log_msg2.c
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2019-09-23 07:44:43 +08:00
|
|
|
zephyr_sources_ifdef(
|
|
|
|
CONFIG_LOG_BACKEND_UART
|
|
|
|
log_backend_uart.c
|
2018-05-16 14:50:33 +08:00
|
|
|
)
|
2018-09-13 17:52:32 +08:00
|
|
|
|
2020-08-21 15:15:45 +08:00
|
|
|
zephyr_sources_ifdef(
|
|
|
|
CONFIG_LOG_BACKEND_FS
|
|
|
|
log_backend_fs.c
|
|
|
|
)
|
|
|
|
|
|
|
|
zephyr_link_libraries_ifdef(CONFIG_LOG_BACKEND_FS LITTLEFS)
|
|
|
|
|
2019-09-23 07:44:43 +08:00
|
|
|
zephyr_sources_ifdef(
|
|
|
|
CONFIG_LOG_CMDS
|
|
|
|
log_cmds.c
|
2018-09-13 17:52:32 +08:00
|
|
|
)
|
2018-09-24 16:26:42 +08:00
|
|
|
|
2019-09-23 07:44:43 +08:00
|
|
|
zephyr_sources_ifdef(
|
|
|
|
CONFIG_LOG_BACKEND_NATIVE_POSIX
|
|
|
|
log_backend_native_posix.c
|
2018-10-17 16:17:14 +08:00
|
|
|
)
|
|
|
|
|
2019-09-23 07:44:43 +08:00
|
|
|
zephyr_sources_ifdef(
|
|
|
|
CONFIG_LOG_BACKEND_XTENSA_SIM
|
|
|
|
log_backend_xtensa_sim.c
|
2019-03-04 09:16:08 +08:00
|
|
|
)
|
|
|
|
|
2019-09-23 07:44:43 +08:00
|
|
|
zephyr_sources_ifdef(
|
|
|
|
CONFIG_LOG_BACKEND_NET
|
|
|
|
log_backend_net.c
|
2018-10-12 22:31:57 +08:00
|
|
|
)
|
|
|
|
|
2019-09-23 07:44:43 +08:00
|
|
|
zephyr_sources_ifdef(
|
|
|
|
CONFIG_LOG_BACKEND_RTT
|
|
|
|
log_backend_rtt.c
|
|
|
|
)
|
2018-12-20 16:01:14 +08:00
|
|
|
|
2019-09-23 07:44:43 +08:00
|
|
|
zephyr_sources_ifdef(
|
|
|
|
CONFIG_LOG_BACKEND_SWO
|
|
|
|
log_backend_swo.c
|
|
|
|
)
|
2019-10-29 05:45:55 +08:00
|
|
|
|
|
|
|
zephyr_sources_ifdef(
|
|
|
|
CONFIG_LOG_MIPI_SYST_ENABLE
|
|
|
|
log_output_syst.c
|
|
|
|
)
|
2019-11-19 18:35:35 +08:00
|
|
|
|
|
|
|
zephyr_sources_ifdef(
|
2020-10-30 04:07:50 +08:00
|
|
|
CONFIG_LOG_BACKEND_ADSP
|
|
|
|
log_backend_adsp.c
|
2019-11-19 18:35:35 +08:00
|
|
|
)
|
2020-06-15 20:21:16 +08:00
|
|
|
|
|
|
|
if(CONFIG_LOG_BACKEND_SPINEL)
|
|
|
|
zephyr_library_include_directories(
|
|
|
|
${ZEPHYR_BASE}/subsys/net/lib/openthread/platform/
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
zephyr_sources_ifdef(
|
|
|
|
CONFIG_LOG_BACKEND_SPINEL
|
|
|
|
log_backend_spinel.c
|
|
|
|
)
|
|
|
|
|
2021-04-03 03:54:53 +08:00
|
|
|
if(CONFIG_LOG_DICTIONARY_SUPPORT)
|
|
|
|
zephyr_sources(log_output_dict.c)
|
|
|
|
endif()
|
|
|
|
|
2019-09-23 07:44:43 +08:00
|
|
|
else()
|
|
|
|
zephyr_sources(log_minimal.c)
|
|
|
|
endif()
|