diff --git a/components/log/CMakeLists.txt b/components/log/CMakeLists.txt index 2ca586a2d6..9590c8913b 100644 --- a/components/log/CMakeLists.txt +++ b/components/log/CMakeLists.txt @@ -14,7 +14,9 @@ endif() set(srcs "src/${system_target}/log_timestamp.c" "src/log_timestamp_common.c" "src/${system_target}/log_lock.c" + "src/buffer/log_buffers.c" "src/${system_target}/util.c" + "src/util.c" "src/log_print.c" "src/log.c") @@ -25,10 +27,6 @@ if(NOT non_os_build) 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" - "src/util.c") - list(APPEND srcs "src/log_level/log_level.c" "src/log_level/tag_log_level/tag_log_level.c") diff --git a/components/log/include/esp_log_buffer.h b/components/log/include/esp_log_buffer.h index d9e3a49807..e38bde768c 100644 --- a/components/log/include/esp_log_buffer.h +++ b/components/log/include/esp_log_buffer.h @@ -13,8 +13,6 @@ extern "C" { #endif -#if !NON_OS_BUILD || __DOXYGEN__ - /** * @brief Logs a buffer of hexadecimal bytes at the specified log level. * @@ -173,8 +171,6 @@ static inline void esp_log_buffer_char(const char *tag, const void *buffer, uint } /** @endcond */ -#endif // !NON_OS_BUILD || __DOXYGEN__ - #ifdef __cplusplus } #endif