1
0
Fork 0
forked from nuttx/nuttx-update

syslog: fix ramlog not work issue with cmake

Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
This commit is contained in:
wanggang26 2024-10-11 10:34:53 +08:00 committed by Mateusz Szafoni
parent 2ed9bd5e71
commit adc52bf968

View file

@ -35,6 +35,10 @@ endif()
if(CONFIG_RAMLOG)
list(APPEND SRCS ramlog.c)
if(CONFIG_RAMLOG_BUFFER_SECTION)
target_compile_definitions(
drivers PRIVATE -DRAMLOG_BUFFER_SECTION="${CONFIG_RAMLOG_BUFFER_SECTION}")
endif()
endif()
# Include SYSLOG drivers (only one should be enabled)