Skip to content

Commit

Permalink
syslog: fix ramlog not work issue with cmake
Browse files Browse the repository at this point in the history
Signed-off-by: wanggang26 <[email protected]>
  • Loading branch information
wanggang26 authored and raiden00pl committed Oct 19, 2024
1 parent 2ed9bd5 commit adc52bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/syslog/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit adc52bf

Please sign in to comment.