mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-27 15:31:17 +01:00
Merge pull request #11547 from cladmi/pr/make/objdump
makefiles/toolchain: fallback to 'objdump'
This commit is contained in:
commit
bb6a06a5a0
@ -18,6 +18,7 @@ ifeq ($(OBJCOPY),)
|
||||
$(warning objcopy not found. Hex file will not be created.)
|
||||
export OBJCOPY = true
|
||||
endif
|
||||
export OBJDUMP = $(PREFIX)objdump
|
||||
# Default to the native (g)objdump, helps when using toolchain from docker
|
||||
export OBJDUMP ?= $(or $(shell command -v $(PREFIX)objdump || command -v gobjdump),objdump)
|
||||
# We use GDB for debugging
|
||||
include $(RIOTMAKE)/tools/gdb.inc.mk
|
||||
|
||||
@ -25,7 +25,8 @@ ifeq ($(OBJCOPY),)
|
||||
$(warning objcopy not found. Hex file will not be created.)
|
||||
export OBJCOPY = true
|
||||
endif
|
||||
export OBJDUMP = $(LLVMPREFIX)objdump
|
||||
# Default to the native (g)objdump, helps when using toolchain from docker
|
||||
export OBJDUMP ?= $(or $(shell command -v $(LLVMPREFIX)objdump || command -v gobjdump),objdump)
|
||||
export SIZE = $(LLVMPREFIX)size
|
||||
# LLVM lacks a binutils strip tool as well...
|
||||
#export STRIP = $(LLVMPREFIX)strip
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user