This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 560198540b427dedc525110d70108054f79a9f84
Author: Bowen Wang <[email protected]>
AuthorDate: Tue Mar 25 11:31:56 2025 +0800

    openamp/libmetal.cmake: disable the default logger like the Make build
    
    libmetal.defs does not define DEFAULT_LOGGER_ON, so in the Make build
    metal_default_log_handler() prints nothing. The CMake build keeps
    libmetal's WITH_DEFAULT_LOGGER option at its default ON, which makes the
    handler format into a 1 KiB stack buffer and fprintf() to stderr. Turn
    the option off so both builds behave the same.
    
    Signed-off-by: Bowen Wang <[email protected]>
---
 openamp/libmetal.cmake | 1 +
 1 file changed, 1 insertion(+)

diff --git a/openamp/libmetal.cmake b/openamp/libmetal.cmake
index 0547702bef5..cac8ac3b779 100644
--- a/openamp/libmetal.cmake
+++ b/openamp/libmetal.cmake
@@ -67,6 +67,7 @@ set(CMAKE_SYSTEM_PROCESSOR ${LIBMETAL_ARCH})
 set(MACHINE ${CONFIG_ARCH})
 set(CMAKE_SYSTEM_NAME NuttX)
 set(WITH_DOC OFF)
+set(WITH_DEFAULT_LOGGER OFF)
 
 if(CONFIG_OPENAMP_CACHE)
   add_compile_definitions(METAL_CACHE)

Reply via email to