make: use gobjcopy if objcopy is not available
This commit is contained in:
parent
61daeff04c
commit
fe96a4c9c4
|
@ -9,6 +9,10 @@ endif
|
|||
export AS = $(PREFIX)as
|
||||
export LINK = $(PREFIX)gcc
|
||||
export SIZE = $(PREFIX)size
|
||||
export OBJCOPY = $(PREFIX)objcopy
|
||||
export OBJCOPY = $(shell command -v $(PREFIX)objcopy gobjcopy objcopy | head -n 1)
|
||||
ifeq ($(OBJCOPY),)
|
||||
$(warning objcopy not found. Hex file will not be created.)
|
||||
export OBJCOPY = true
|
||||
endif
|
||||
export OBJDUMP = $(PREFIX)objdump
|
||||
export DBG = $(GDBPREFIX)gdb
|
||||
|
|
Loading…
Reference in New Issue