mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 06:53:34 +08:00
QuRT: move to HexagonTools 7.4 toolchain
Some subsystems error on frame size without the included patches. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
include(qurt/px4_impl_qurt)
|
include(qurt/px4_impl_qurt)
|
||||||
|
|
||||||
set(CMAKE_TOOLCHAIN_FILE cmake/toolchains/Toolchain-hexagon-7.2.cmake)
|
set(CMAKE_TOOLCHAIN_FILE cmake/toolchains/Toolchain-hexagon-7.4.cmake)
|
||||||
|
|
||||||
set(config_module_list
|
set(config_module_list
|
||||||
drivers/device
|
drivers/device
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
include(qurt/px4_impl_qurt)
|
include(qurt/px4_impl_qurt)
|
||||||
|
|
||||||
set(CMAKE_TOOLCHAIN_FILE cmake/toolchains/Toolchain-hexagon-7.2.cmake)
|
set(CMAKE_TOOLCHAIN_FILE cmake/toolchains/Toolchain-hexagon-7.4.cmake)
|
||||||
|
|
||||||
set(config_module_list
|
set(config_module_list
|
||||||
drivers/device
|
drivers/device
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
include(qurt/px4_impl_qurt)
|
include(qurt/px4_impl_qurt)
|
||||||
|
|
||||||
set(CMAKE_TOOLCHAIN_FILE cmake/toolchains/Toolchain-hexagon-7.2.cmake)
|
set(CMAKE_TOOLCHAIN_FILE cmake/toolchains/Toolchain-hexagon-7.4.cmake)
|
||||||
|
|
||||||
set(config_module_list
|
set(config_module_list
|
||||||
drivers/device
|
drivers/device
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ set(target_libraries
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
set(CMAKE_TOOLCHAIN_FILE cmake/toolchains/Toolchain-hexagon-7.2.cmake)
|
set(CMAKE_TOOLCHAIN_FILE cmake/toolchains/Toolchain-hexagon-7.4.cmake)
|
||||||
|
|
||||||
set(config_module_list
|
set(config_module_list
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
include(qurt/px4_impl_qurt)
|
include(qurt/px4_impl_qurt)
|
||||||
|
|
||||||
set(CMAKE_TOOLCHAIN_FILE cmake/toolchains/Toolchain-hexagon-7.2.cmake)
|
set(CMAKE_TOOLCHAIN_FILE cmake/toolchains/Toolchain-hexagon-7.4.cmake)
|
||||||
|
|
||||||
set(config_module_list
|
set(config_module_list
|
||||||
drivers/device
|
drivers/device
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ include(qurt/px4_impl_qurt)
|
|||||||
# Run a full link with build stubs to make sure qurt target isn't broken
|
# Run a full link with build stubs to make sure qurt target isn't broken
|
||||||
set(QURT_ENABLE_STUBS "1")
|
set(QURT_ENABLE_STUBS "1")
|
||||||
|
|
||||||
set(CMAKE_TOOLCHAIN_FILE cmake/toolchains/Toolchain-hexagon-7.2.cmake)
|
set(CMAKE_TOOLCHAIN_FILE cmake/toolchains/Toolchain-hexagon-7.4.cmake)
|
||||||
|
|
||||||
set(config_module_list
|
set(config_module_list
|
||||||
drivers/device
|
drivers/device
|
||||||
|
|||||||
+3
-4
@@ -35,7 +35,7 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
|
|||||||
include(common/px4_base)
|
include(common/px4_base)
|
||||||
|
|
||||||
if(NOT HEXAGON_TOOLS_ROOT)
|
if(NOT HEXAGON_TOOLS_ROOT)
|
||||||
set(HEXAGON_TOOLS_ROOT /opt/7.2.09/Tools)
|
set(HEXAGON_TOOLS_ROOT /opt/7.4/Tools)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
macro (list2string out in)
|
macro (list2string out in)
|
||||||
@@ -95,7 +95,6 @@ set(ARCHOPTIMIZATION
|
|||||||
-g
|
-g
|
||||||
-fno-strict-aliasing
|
-fno-strict-aliasing
|
||||||
-fdata-sections
|
-fdata-sections
|
||||||
-fpic
|
|
||||||
-fno-zero-initialized-in-bss
|
-fno-zero-initialized-in-bss
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -108,7 +107,7 @@ set(ARCHCFLAGS
|
|||||||
set(ARCHCXXFLAGS
|
set(ARCHCXXFLAGS
|
||||||
-fno-exceptions
|
-fno-exceptions
|
||||||
-fno-rtti
|
-fno-rtti
|
||||||
# -std=c++11
|
-std=c++11
|
||||||
-fno-threadsafe-statics
|
-fno-threadsafe-statics
|
||||||
-DCONFIG_WCHAR_BUILTIN
|
-DCONFIG_WCHAR_BUILTIN
|
||||||
-D__CUSTOM_FILE_IO__
|
-D__CUSTOM_FILE_IO__
|
||||||
@@ -214,9 +213,9 @@ list2string(CMAKE_EXE_LINKER_FLAGS
|
|||||||
-g
|
-g
|
||||||
-mv5
|
-mv5
|
||||||
-mG0lib
|
-mG0lib
|
||||||
-lhexagon
|
|
||||||
-G0
|
-G0
|
||||||
-fpic
|
-fpic
|
||||||
|
-shared
|
||||||
-Wl,-Bsymbolic
|
-Wl,-Bsymbolic
|
||||||
-Wl,--wrap=malloc
|
-Wl,--wrap=malloc
|
||||||
-Wl,--wrap=calloc
|
-Wl,--wrap=calloc
|
||||||
@@ -29,12 +29,17 @@
|
|||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
# POSSIBILITY OF SUCH DAMAGE.
|
||||||
#
|
#
|
||||||
############################################################################
|
#############################################################################
|
||||||
|
set(MODULE_CFLAGS)
|
||||||
|
if (NOT ${OS} STREQUAL "qurt")
|
||||||
|
list(APPEND MODULE_CFLAGS
|
||||||
|
-Wframe-larger-than=1400)
|
||||||
|
endif()
|
||||||
px4_add_module(
|
px4_add_module(
|
||||||
MODULE modules__attitude_estimator_q
|
MODULE modules__attitude_estimator_q
|
||||||
MAIN attitude_estimator_q
|
MAIN attitude_estimator_q
|
||||||
COMPILE_FLAGS
|
COMPILE_FLAGS
|
||||||
-Wframe-larger-than=1400
|
${MODULE_CFLAGS}
|
||||||
STACK 1200
|
STACK 1200
|
||||||
SRCS
|
SRCS
|
||||||
attitude_estimator_q_main.cpp
|
attitude_estimator_q_main.cpp
|
||||||
|
|||||||
@@ -30,13 +30,18 @@
|
|||||||
# POSSIBILITY OF SUCH DAMAGE.
|
# POSSIBILITY OF SUCH DAMAGE.
|
||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
set(MODULE_CFLAGS -Os)
|
||||||
|
|
||||||
|
if(NOT ${OS} STREQUAL "qurt")
|
||||||
|
list(APPEND MODULE_CFLAGS
|
||||||
|
-Wframe-larger-than=2200)
|
||||||
|
endif()
|
||||||
px4_add_module(
|
px4_add_module(
|
||||||
MODULE modules__commander
|
MODULE modules__commander
|
||||||
MAIN commander
|
MAIN commander
|
||||||
STACK 5000
|
STACK 5000
|
||||||
COMPILE_FLAGS
|
COMPILE_FLAGS
|
||||||
-Wframe-larger-than=2200
|
${MODULE_CFLAGS}
|
||||||
-Os
|
|
||||||
SRCS
|
SRCS
|
||||||
commander.cpp
|
commander.cpp
|
||||||
commander_params.c
|
commander_params.c
|
||||||
|
|||||||
Reference in New Issue
Block a user