Double the allocated stack size of 64-bit NuttX built-in modules

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen 2022-07-20 12:09:18 +04:00 committed by Beat Küng
parent 7c809f034d
commit c7aaf52fd4
1 changed files with 3 additions and 0 deletions

View File

@ -202,6 +202,9 @@ function(px4_add_module)
set_target_properties(${MODULE} PROPERTIES STACK_MAX ${STACK_MAX}) set_target_properties(${MODULE} PROPERTIES STACK_MAX ${STACK_MAX})
if(${PX4_PLATFORM} STREQUAL "nuttx") if(${PX4_PLATFORM} STREQUAL "nuttx")
# double the allocated stacks for 64 bit nuttx targets
set(STACK_MAIN "${STACK_MAIN} * (__SIZEOF_POINTER__ >> 2)")
target_compile_options(${MODULE} PRIVATE -Wframe-larger-than=${STACK_MAX}) target_compile_options(${MODULE} PRIVATE -Wframe-larger-than=${STACK_MAX})
endif() endif()