Modified cmake to use STACK_MAX and STACK_MAIN

This commit is contained in:
James Goppert
2016-04-14 13:36:36 -04:00
parent 5843acecc4
commit 967e4dd127
80 changed files with 158 additions and 196 deletions
+2 -6
View File
@@ -30,16 +30,12 @@
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
set(MODULE_CFLAGS -Os)
if(${OS} STREQUAL "nuttx")
list(APPEND MODULE_CFLAGS -Wframe-larger-than=2450)
endif()
px4_add_module(
MODULE modules__commander
MAIN commander
STACK 4096
STACK_MAIN 4096
STACK_MAX 2450
COMPILE_FLAGS
${MODULE_CFLAGS}
-Os
SRCS
commander.cpp