From adc52bf968bc5d90d1ef43c767f8eb4c81a4dd71 Mon Sep 17 00:00:00 2001 From: wanggang26 Date: Fri, 11 Oct 2024 10:34:53 +0800 Subject: [PATCH] syslog: fix ramlog not work issue with cmake Signed-off-by: wanggang26 --- drivers/syslog/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/syslog/CMakeLists.txt b/drivers/syslog/CMakeLists.txt index 27192ca4f5f13..1090ac65bba45 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)