From f897b8eebe51756b4025962226de91d8a763c9c7 Mon Sep 17 00:00:00 2001 From: Gaute Nilsson Date: Mon, 17 Feb 2020 19:56:05 +0100 Subject: [PATCH] Add option to adjust RPMSG_BUFFER_SIZE during CMake build --- cmake/options.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/options.cmake b/cmake/options.cmake index 93f6c4e76..30ef65264 100644 --- a/cmake/options.cmake +++ b/cmake/options.cmake @@ -74,5 +74,9 @@ endif (WITH_ZEPHYR) option (WITH_LIBMETAL_FIND "Check Libmetal library can be found" ON) +if (DEFINED RPMSG_BUFFER_SIZE) + add_definitions( -DRPMSG_BUFFER_SIZE=${RPMSG_BUFFER_SIZE} ) +endif(DEFINED RPMSG_BUFFER_SIZE) + message ("-- C_FLAGS : ${CMAKE_C_FLAGS}") # vim: expandtab:ts=2:sw=2:smartindent