add px4fmu-v{3,4,5} stackcheck configs

This commit is contained in:
Daniel Agar
2018-09-02 12:59:00 -04:00
parent 7e12815f81
commit 7cc0e69fcd
14 changed files with 5270 additions and 13 deletions

View File

@@ -195,7 +195,7 @@ function(px4_os_add_flags)
)
if("${CONFIG_ARMV7M_STACKCHECK}" STREQUAL "y")
message(WARNING !!!!!!!!! CONFIG_ARMV7M_STACKCHECK=${CONFIG_ARMV7M_STACKCHECK} !!!!!!)
message(STATUS "NuttX Stack Checking (CONFIG_ARMV7M_STACKCHECK) enabled")
set(instrument_flags
-finstrument-functions
-ffixed-r10
@@ -245,7 +245,7 @@ function(px4_os_prebuild_targets)
add_dependencies(${OUT} DEPENDS nuttx_context uorb_headers)
# parse nuttx config options for cmake
file(STRINGS ${PX4_SOURCE_DIR}/platforms/nuttx/nuttx-configs/${BOARD}/nsh/defconfig ConfigContents)
file(STRINGS ${PX4_SOURCE_DIR}/platforms/nuttx/nuttx-configs/${BOARD}/${nuttx_config_type}/defconfig ConfigContents)
foreach(NameAndValue ${ConfigContents})
# Strip leading spaces
string(REGEX REPLACE "^[ ]+" "" NameAndValue ${NameAndValue})
@@ -309,6 +309,11 @@ function(px4_nuttx_configure)
set(CMAKE_SYSTEM_PROCESSOR ${CMAKE_SYSTEM_PROCESSOR} CACHE INTERNAL "system processor" FORCE)
set(CMAKE_TOOLCHAIN_FILE ${PX4_SOURCE_DIR}/cmake/toolchains/Toolchain-arm-none-eabi.cmake CACHE INTERNAL "toolchain file" FORCE)
if (CONFIG)
set(nuttx_config_type ${CONFIG})
set(nuttx_config_type ${nuttx_config_type} PARENT_SCOPE)
endif()
# ROMFS
if("${ROMFS}" STREQUAL "y")
if (NOT DEFINED ROMFSROOT)