native/make/osx: circumvent unavailable gobjcopy
It's not used anyways, so just create an empty hex file if gobjcopy is not found.
This commit is contained in:
parent
69d5868d71
commit
07da49de40
@ -19,8 +19,15 @@ export SIZE ?= $(PREFIX)size
|
|||||||
ifneq ($(shell uname -s),Darwin)
|
ifneq ($(shell uname -s),Darwin)
|
||||||
export OBJCOPY ?= $(PREFIX)objcopy
|
export OBJCOPY ?= $(PREFIX)objcopy
|
||||||
else
|
else
|
||||||
export OBJCOPY ?= $(PREFIX)gobjcopy
|
ifeq (0,$(shell which gobjcopy 2>&1 > /dev/null ; echo $$?))
|
||||||
|
export OBJCOPY ?= gobjcopy
|
||||||
export OFLAGS ?= -O ihex
|
export OFLAGS ?= -O ihex
|
||||||
|
else
|
||||||
|
# If gobjcopy is not available, just create an empty file. The hexfile
|
||||||
|
# is not used for native anyways.
|
||||||
|
export OBJCOPY ?= touch
|
||||||
|
export OFLAGS =
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
export DEBUGGER = gdb
|
export DEBUGGER = gdb
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user