From d00911843708996883faeb7ad79c163d51c78d61 Mon Sep 17 00:00:00 2001 From: Roman Date: Sat, 19 Dec 2015 09:16:17 +0100 Subject: [PATCH] set stack size for ecl --- CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c439b304dc..81aef01785 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,10 +30,15 @@ # POSSIBILITY OF SUCH DAMAGE. # ############################################################################ +set(MODULE_CFLAGS ) +if(${OS} STREQUAL "nuttx") + list(APPEND MODULE_CFLAGS -Wframe-larger-than=6000) +endif() + px4_add_module( MODULE lib__ecl - COMPILE_FLAGS - -Os + STACK 6000 + COMPILE_FLAGS ${MODULE_CFLAGS} -Os SRCS attitude_fw/ecl_controller.cpp attitude_fw/ecl_pitch_controller.cpp