Merge branch 'cmake-2' of github.com:PX4/Firmware into cmake-2-pthread

This commit is contained in:
Lorenz Meier
2015-09-20 00:52:41 +02:00
8 changed files with 219 additions and 49 deletions
@@ -37,7 +37,7 @@ endif()
cmake_force_cxx_compiler(${CXX_COMPILER} GNU)
# compiler tools
foreach(tool objcopy nm ld gdb)
foreach(tool objcopy nm ld)
string(TOUPPER ${tool} TOOL)
find_program(${TOOL} arm-none-eabi-${tool})
if(NOT ${TOOL})
@@ -45,6 +45,12 @@ foreach(tool objcopy nm ld gdb)
endif()
endforeach()
# optional compiler tools
foreach(tool gdb gdbtui)
string(TOUPPER ${tool} TOOL)
find_program(${TOOL} arm-none-eabi-${tool})
endforeach()
# os tools
foreach(tool echo patch grep rm mkdir nm genromfs cp touch make unzip)
string(TOUPPER ${tool} TOOL)