mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-27 18:27:05 +08:00
eagle: Added posix_eagle_release to Makefile
Enable build of posix_eagle_release. Added path to ARM cross compiler in qrlsdk install. Fixed warnings in Toolchain-arm-linux-gnueabihf.cmake Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
committed by
Lorenz Meier
parent
224af93bbb
commit
4b1e4e63f0
@@ -125,6 +125,9 @@ ros_sitl_simple:
|
|||||||
qurt_eagle_travis:
|
qurt_eagle_travis:
|
||||||
$(call cmake-build,$@)
|
$(call cmake-build,$@)
|
||||||
|
|
||||||
|
posix_eagle_release:
|
||||||
|
$(call cmake-build,$@)
|
||||||
|
|
||||||
posix: posix_sitl_simple
|
posix: posix_sitl_simple
|
||||||
|
|
||||||
posix_sitl_default: posix_sitl_simple
|
posix_sitl_default: posix_sitl_simple
|
||||||
|
|||||||
@@ -5,6 +5,15 @@ if("${DSPAL_STUBS_ENABLE}" STREQUAL "")
|
|||||||
set(DSPAL_STUBS_ENABLE "1")
|
set(DSPAL_STUBS_ENABLE "1")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if ("${QRL_SDK_DIR}" STREQUAL "")
|
||||||
|
set(QRL_SDK_DIR /opt/qrlsdk)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(CMAKE_PROGRAM_PATH
|
||||||
|
"${QRL_SDK_DIR}/gcc-linaro-4.8-2015.06-x86_64_arm-linux-gnueabihf/bin"
|
||||||
|
${CMAKE_PROGRAM_PATH}
|
||||||
|
)
|
||||||
|
|
||||||
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/toolchains/Toolchain-arm-linux-gnueabihf.cmake)
|
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/toolchains/Toolchain-arm-linux-gnueabihf.cmake)
|
||||||
|
|
||||||
set(config_module_list
|
set(config_module_list
|
||||||
|
|||||||
@@ -26,13 +26,13 @@ set(CMAKE_SYSTEM_VERSION 1)
|
|||||||
# specify the cross compiler
|
# specify the cross compiler
|
||||||
find_program(C_COMPILER arm-linux-gnueabihf-gcc)
|
find_program(C_COMPILER arm-linux-gnueabihf-gcc)
|
||||||
if(NOT C_COMPILER)
|
if(NOT C_COMPILER)
|
||||||
message(FATAL_ERROR "could not find arm-none-eabi-gcc compiler")
|
message(FATAL_ERROR "could not find arm-linux-gnueabihf-gcc compiler")
|
||||||
endif()
|
endif()
|
||||||
cmake_force_c_compiler(${C_COMPILER} GNU)
|
cmake_force_c_compiler(${C_COMPILER} GNU)
|
||||||
|
|
||||||
find_program(CXX_COMPILER arm-linux-gnueabihf-g++)
|
find_program(CXX_COMPILER arm-linux-gnueabihf-g++)
|
||||||
if(NOT CXX_COMPILER)
|
if(NOT CXX_COMPILER)
|
||||||
message(FATAL_ERROR "could not find arm-none-eabi-g++ compiler")
|
message(FATAL_ERROR "could not find arm-linux-gnueabihf-g++ compiler")
|
||||||
endif()
|
endif()
|
||||||
cmake_force_cxx_compiler(${CXX_COMPILER} GNU)
|
cmake_force_cxx_compiler(${CXX_COMPILER} GNU)
|
||||||
|
|
||||||
@@ -41,7 +41,7 @@ foreach(tool objcopy nm ld)
|
|||||||
string(TOUPPER ${tool} TOOL)
|
string(TOUPPER ${tool} TOOL)
|
||||||
find_program(${TOOL} arm-linux-gnueabihf-${tool})
|
find_program(${TOOL} arm-linux-gnueabihf-${tool})
|
||||||
if(NOT ${TOOL})
|
if(NOT ${TOOL})
|
||||||
message(FATAL_ERROR "could not find ${tool}")
|
message(FATAL_ERROR "could not find arm-linux-gnueabihf-${tool}")
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user