1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

llvm: Fall back for missing objcopy

Copied from Makefile.include.gnu
This commit is contained in:
Joakim Nohlgård 2017-03-01 11:43:49 +01:00
parent f6022a283d
commit 30aec689d9

View File

@ -17,7 +17,11 @@ export NM = $(LLVMPREFIX)nm
#export LINKER = $(LLVMPREFIX)ld
# objcopy does not have a clear substitute in LLVM, use GNU binutils
#export OBJCOPY = $(LLVMPREFIX)objcopy
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 = $(LLVMPREFIX)objdump
export SIZE = $(LLVMPREFIX)size
export DBG = $(GDBPREFIX)gdb