forked from espressif/esp-idf
feat(log): Refactoring lock APIs
This commit is contained in:
@@ -11,20 +11,14 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(srcs "src/${system_target}/log_timestamp.c"
|
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 "")
|
set(priv_requires "")
|
||||||
|
|
||||||
if(BOOTLOADER_BUILD)
|
if(NOT BOOTLOADER_BUILD)
|
||||||
list(APPEND srcs "log_noos.c")
|
list(APPEND priv_requires soc hal esp_hw_support)
|
||||||
else()
|
|
||||||
list(APPEND srcs "src/os/log_write.c")
|
|
||||||
|
|
||||||
if(${target} STREQUAL "linux")
|
list(APPEND srcs "src/os/log_write.c")
|
||||||
list(APPEND srcs "log_linux.c")
|
|
||||||
else()
|
|
||||||
list(APPEND srcs "log_freertos.c")
|
|
||||||
list(APPEND priv_requires soc hal esp_hw_support)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Buffer APIs call ESP_LOG_LEVEL -> esp_log_write, which can not used in bootloader.
|
# Buffer APIs call ESP_LOG_LEVEL -> esp_log_write, which can not used in bootloader.
|
||||||
list(APPEND srcs "src/buffer/log_buffers.c"
|
list(APPEND srcs "src/buffer/log_buffers.c"
|
||||||
|
@@ -4,3 +4,4 @@ entries:
|
|||||||
log_write:esp_log_write (noflash)
|
log_write:esp_log_write (noflash)
|
||||||
log_timestamp:esp_log_timestamp (noflash)
|
log_timestamp:esp_log_timestamp (noflash)
|
||||||
log_timestamp:esp_log_early_timestamp (noflash)
|
log_timestamp:esp_log_early_timestamp (noflash)
|
||||||
|
log_lock (noflash)
|
||||||
|
Reference in New Issue
Block a user