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