Browse Source
Added generation of build_git_version.h Added separate src/lib/eigen-3.2 dir for qurt (new submodule) Added patching of eigen-3.2 for qurt (compiler has issue with Complex) Signed-off-by: Mark Charlebois <charlebm@gmail.com>sbg
9 changed files with 77 additions and 5 deletions
@ -0,0 +1,4 @@
@@ -0,0 +1,4 @@
|
||||
/* Auto Magically Generated file */ |
||||
/* Do not edit! */ |
||||
#define PX4_GIT_VERSION_STR @git_desc@ |
||||
#define PX4_GIT_VERSION_BINARY 0x@git_desc_short@ |
@ -0,0 +1,31 @@
@@ -0,0 +1,31 @@
|
||||
#============================================================================= |
||||
# |
||||
# px4_create_git_hash_header |
||||
# |
||||
# Create a header file containing the git hash of the current tree |
||||
# |
||||
# Usage: |
||||
# px4_create_git_hash_header(HEADER ${CMAKE_BUILD_DIR}/git_hash.h) |
||||
# |
||||
# Input: |
||||
# HEADER : path of the header file to generate |
||||
# |
||||
# Example: |
||||
# px4_create_git_hash_header(HEADER ${CMAKE_BUILD_DIR}/git_hash.h) |
||||
# |
||||
function(px4_create_git_hash_header) |
||||
px4_parse_function_args( |
||||
NAME px4_create_git_hash_header |
||||
ONE_VALUE HEADER |
||||
REQUIRED HEADER |
||||
ARGN ${ARGN}) |
||||
execute_process( |
||||
COMMAND git log -n 1 --pretty=format:"%H" |
||||
OUTPUT_VARIABLE git_desc |
||||
OUTPUT_STRIP_TRAILING_WHITESPACE |
||||
) |
||||
message(STATUS "GIT_DESC = ${git_desc}") |
||||
set(git_desc_short) |
||||
string(SUBSTRING ${git_desc} 1 16 git_desc_short) |
||||
configure_file(${CMAKE_SOURCE_DIR}/cmake/build_git_version.h.in ${HEADER} @ONLY) |
||||
endfunction() |
@ -0,0 +1,17 @@
@@ -0,0 +1,17 @@
|
||||
This patch is required for QuRT. complex.h defines "I" and it replaces "I" in the
|
||||
enum definition without this patch creating an error.
|
||||
|
||||
diff --git a/Eigen/src/Core/SolveTriangular.h b/Eigen/src/Core/SolveTriangular.h
|
||||
index ef17f28..1116270 100644
|
||||
--- a/Eigen/src/Core/SolveTriangular.h
|
||||
+++ b/Eigen/src/Core/SolveTriangular.h
|
||||
@@ -112,6 +112,9 @@ template<typename Lhs, typename Rhs, int Mode, int Index, int Size,
|
||||
bool Stop = Index==Size>
|
||||
struct triangular_solver_unroller;
|
||||
|
||||
+#ifdef __PX4_QURT
|
||||
+#undef I
|
||||
+#endif
|
||||
template<typename Lhs, typename Rhs, int Mode, int Index, int Size>
|
||||
struct triangular_solver_unroller<Lhs,Rhs,Mode,Index,Size,false> {
|
||||
enum {
|
@ -1,2 +0,0 @@
@@ -1,2 +0,0 @@
|
||||
#define PX4_GIT_VERSION_STR "1234567890123456789012345678901234567890" |
||||
#define PX4_GIT_VERSION_BINARY 0x1234567890123456 |
Loading…
Reference in new issue