log: support ESP_LOG_BUFFER* functions for Linux target

This commit is contained in:
Ivan Grokhotkov
2022-04-11 13:29:01 +02:00
parent 199d72c19c
commit 3602d332c4
3 changed files with 22 additions and 5 deletions
+1 -4
View File
@@ -1,12 +1,9 @@
idf_build_get_property(target IDF_TARGET)
set(srcs "log.c")
set(srcs "log.c" "log_buffers.c")
set(priv_requires "")
if(${target} STREQUAL "linux")
# We leave log buffers out for now on Linux since it's rarely used. Explicitely add esp_rom to Linux target
# since we don't have the common components there yet.
list(APPEND srcs "log_linux.c")
else()
list(APPEND srcs "log_buffers.c")
list(APPEND priv_requires soc hal esp_hw_support)
endif()