feat(log): Refactoring lock APIs

This commit is contained in:
Konstantin Kondrashov 2024-05-02 12:36:32 +03:00
parent 4ad9ad8086
commit ec594e2c6f
5 changed files with 6 additions and 11 deletions

View File

@ -11,20 +11,14 @@ else()
endif()
set(srcs "src/${system_target}/log_timestamp.c"
"src/log_timestamp_common.c")
"src/log_timestamp_common.c"
"src/${system_target}/log_lock.c")
set(priv_requires "")
if(BOOTLOADER_BUILD)
list(APPEND srcs "log_noos.c")
else()
list(APPEND srcs "src/os/log_write.c")
if(NOT BOOTLOADER_BUILD)
list(APPEND priv_requires soc hal esp_hw_support)
if(${target} STREQUAL "linux")
list(APPEND srcs "log_linux.c")
else()
list(APPEND srcs "log_freertos.c")
list(APPEND priv_requires soc hal esp_hw_support)
endif()
list(APPEND srcs "src/os/log_write.c")
# Buffer APIs call ESP_LOG_LEVEL -> esp_log_write, which can not used in bootloader.
list(APPEND srcs "src/buffer/log_buffers.c"

View File

@ -4,3 +4,4 @@ entries:
log_write:esp_log_write (noflash)
log_timestamp:esp_log_timestamp (noflash)
log_timestamp:esp_log_early_timestamp (noflash)
log_lock (noflash)