mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
NuttX cmake improvements
- fix temporary Make.defs copy - implement custom macros for COMPILE, COMPILEXX, ASSEMBLE, ARCHIVE to enable ccache properly (if available and enabled) - fix NuttX mkdeps - fix libapps race condition with context
This commit is contained in:
@@ -43,7 +43,7 @@ file(GLOB_RECURSE black_magic_probe_console_path
|
||||
if(black_magic_probe_path)
|
||||
|
||||
add_custom_target(blackmagic_debug
|
||||
COMMAND ${GDB} --nh
|
||||
COMMAND ${CMAKE_GDB} --nh
|
||||
-iex 'set auto-load safe-path ${PX4_BINARY_DIR}'
|
||||
-ex 'target extended-remote ${black_magic_probe_path}'
|
||||
-ex 'monitor version'
|
||||
@@ -59,7 +59,7 @@ if(black_magic_probe_path)
|
||||
)
|
||||
|
||||
add_custom_target(blackmagic_upload
|
||||
COMMAND ${GDB} --nx --batch
|
||||
COMMAND ${CMAKE_GDB} --nx --batch
|
||||
-ex 'target extended-remote ${black_magic_probe_path}'
|
||||
-ex 'monitor version'
|
||||
-ex 'monitor connect_srst enable'
|
||||
|
||||
Reference in New Issue
Block a user