[build] use proper GDB according to prefix (#2685)

or new multiarch if not found

close #2589
This commit is contained in:
Gautier Hattenberger
2021-04-07 22:14:11 +02:00
committed by GitHub
parent 34c6c1d908
commit af49fc6049
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -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
+6 -1
View File
@@ -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