diff --git a/drivers/syslog/CMakeLists.txt b/drivers/syslog/CMakeLists.txt index 27192ca4f5..1090ac65bb 100644 --- a/drivers/syslog/CMakeLists.txt +++ b/drivers/syslog/CMakeLists.txt @@ -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)