mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
[build] use proper GDB according to prefix (#2685)
or new multiarch if not found close #2589
This commit is contained in:
committed by
GitHub
parent
34c6c1d908
commit
af49fc6049
@@ -25,7 +25,7 @@ NM = $(PREFIX)-nm
|
||||
SIZE = $(PREFIX)-size
|
||||
STRIP = $(PREFIX)-strip
|
||||
|
||||
GDB = $(shell which arm-none-eabi-gdb)
|
||||
GDB = $(shell which $(PREFIX)-gdb)
|
||||
ifeq ($(GDB),)
|
||||
GDB = $(shell which gdb-multiarch)
|
||||
endif
|
||||
|
||||
@@ -45,7 +45,12 @@ DMP = $(PREFIX)-objdump
|
||||
NM = $(PREFIX)-nm
|
||||
SIZE = $(PREFIX)-size
|
||||
STRIP = $(PREFIX)-strip
|
||||
GDB = gdb-multiarch
|
||||
|
||||
GDB = $(shell $(PREFIX)-gdb)
|
||||
ifeq ($(GDB),)
|
||||
GDB = $(shell which gdb-multiarch)
|
||||
endif
|
||||
|
||||
|
||||
# some general commands
|
||||
RM = rm
|
||||
|
||||
Reference in New Issue
Block a user