mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
qurt: Must use latest version of Eigen
The latest version of Eigen is required to build with the Hexagon 7.4 toolchain. Only certain C++11 features are supported and the latest version if Eigen provides these tests. A patch is required to add support for the Hexagon compiler. These changes force the sync and then update of eigen and allow it to be patched for qurt. The eigen-3.2 submodule was removed as it is no longer needed by the qurt build with the updated toolchain. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -22,6 +22,3 @@
|
|||||||
[submodule "src/lib/dspal"]
|
[submodule "src/lib/dspal"]
|
||||||
path = src/lib/dspal
|
path = src/lib/dspal
|
||||||
url = https://github.com/mcharleb/dspal.git
|
url = https://github.com/mcharleb/dspal.git
|
||||||
[submodule "src/lib/eigen-3.2"]
|
|
||||||
path = src/lib/eigen-3.2
|
|
||||||
url = https://github.com/PX4/eigen.git
|
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ function(px4_add_git_submodule)
|
|||||||
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/git_${NAME}.stamp
|
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/git_${NAME}.stamp
|
||||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||||
COMMAND git submodule init ${PATH}
|
COMMAND git submodule init ${PATH}
|
||||||
COMMAND git submodule update ${PATH}
|
COMMAND git submodule update -f ${PATH}
|
||||||
COMMAND touch ${CMAKE_BINARY_DIR}/git_${NAME}.stamp
|
COMMAND touch ${CMAKE_BINARY_DIR}/git_${NAME}.stamp
|
||||||
)
|
)
|
||||||
add_custom_target(${TARGET}
|
add_custom_target(${TARGET}
|
||||||
|
|||||||
@@ -225,6 +225,7 @@ function(px4_os_prebuild_targets)
|
|||||||
add_custom_target(git_eigen_patched
|
add_custom_target(git_eigen_patched
|
||||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src/lib/eigen
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src/lib/eigen
|
||||||
COMMAND git checkout .
|
COMMAND git checkout .
|
||||||
|
COMMAND git checkout master
|
||||||
COMMAND patch -p1 -i ${CMAKE_SOURCE_DIR}/cmake/qurt/qurt_eigen.patch
|
COMMAND patch -p1 -i ${CMAKE_SOURCE_DIR}/cmake/qurt/qurt_eigen.patch
|
||||||
DEPENDS git_eigen)
|
DEPENDS git_eigen)
|
||||||
add_custom_target(${OUT} DEPENDS git_dspal git_eigen_patched)
|
add_custom_target(${OUT} DEPENDS git_dspal git_eigen_patched)
|
||||||
|
|||||||
Submodule src/lib/eigen-3.2 deleted from e7850ed81f
Reference in New Issue
Block a user