From 5449c5d26b897f6c23b226de3ea110126deddff0 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 Signed-off-by: Gaute Nilsson --- cmake/options.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/options.cmake b/cmake/options.cmake index 93f6c4e76..0d05fd1bf 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