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:
parent
f6022a283d
commit
30aec689d9
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user