mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-27 02:06:27 +08:00
Made debugger tools optional.
This commit is contained in:
@@ -37,7 +37,7 @@ endif()
|
|||||||
cmake_force_cxx_compiler(${CXX_COMPILER} GNU)
|
cmake_force_cxx_compiler(${CXX_COMPILER} GNU)
|
||||||
|
|
||||||
# compiler tools
|
# compiler tools
|
||||||
foreach(tool objcopy nm ld gdb gdbtui)
|
foreach(tool objcopy nm ld)
|
||||||
string(TOUPPER ${tool} TOOL)
|
string(TOUPPER ${tool} TOOL)
|
||||||
find_program(${TOOL} arm-none-eabi-${tool})
|
find_program(${TOOL} arm-none-eabi-${tool})
|
||||||
if(NOT ${TOOL})
|
if(NOT ${TOOL})
|
||||||
@@ -45,6 +45,12 @@ foreach(tool objcopy nm ld gdb gdbtui)
|
|||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
# optional compiler tools
|
||||||
|
foreach(tool gdb gdbtui)
|
||||||
|
string(TOUPPER ${tool} TOOL)
|
||||||
|
find_program(${TOOL} arm-none-eabi-${tool})
|
||||||
|
endforeach()
|
||||||
|
|
||||||
# os tools
|
# os tools
|
||||||
foreach(tool echo patch grep rm mkdir nm genromfs cp touch make unzip)
|
foreach(tool echo patch grep rm mkdir nm genromfs cp touch make unzip)
|
||||||
string(TOUPPER ${tool} TOOL)
|
string(TOUPPER ${tool} TOOL)
|
||||||
|
|||||||
Reference in New Issue
Block a user