px4_impl_os:Use the defconfig CONFIG_ARMV7M_STACKCHECK

To enable coherent runtime stack checking use the boards
  CONFIG_ARMV7M_STACKCHECK setting
This commit is contained in:
David Sidrane 2018-08-28 14:58:19 -07:00
parent a6dabbbae7
commit 4f2aa51767

View File

@ -194,8 +194,8 @@ function(px4_os_add_flags)
-D__DF_NUTTX
)
if("${config_nuttx_hw_stack_check_${BOARD}}" STREQUAL "y")
if("${CONFIG_ARMV7M_STACKCHECK}" STREQUAL "y")
message(WARNING !!!!!!!!! CONFIG_ARMV7M_STACKCHECK=${CONFIG_ARMV7M_STACKCHECK} !!!!!!)
set(instrument_flags
-finstrument-functions
-ffixed-r10