From: Roger Pau Monne Date: Tue, 10 May 2016 12:00:27 +0000 (+0200) Subject: xtf: allow selecting objcopy binary to use X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=refs%2Fheads%2Fmore_fixes;p=people%2Froyger%2Fxen-test-framework.git xtf: allow selecting objcopy binary to use Signed-off-by: Roger Pau Monné --- diff --git a/build/common.mk b/build/common.mk index 1120a16..13c468e 100644 --- a/build/common.mk +++ b/build/common.mk @@ -2,6 +2,7 @@ ROOT := $(abspath $(CURDIR)/../..) DESTDIR ?= $(ROOT)/dist PREFIX ?= $(ROOT) CC ?= gcc +OBJCOPY ?= objcopy ALL_CATEGORIES := special functional xsa utility diff --git a/build/gen.mk b/build/gen.mk index d683560..839c5a0 100644 --- a/build/gen.mk +++ b/build/gen.mk @@ -44,7 +44,7 @@ else # hvm64 needs linking normally, then converting to elf32-x86-64 test-$(1)-$(NAME): $$(DEPS-$(1)) $$(link-$(1)) $$(LD) $$(LDFLAGS_$(1)) $$(DEPS-$(1)) -o $$@.tmp - objcopy $$@.tmp -O elf32-x86-64 $$@ + $$(OBJCOPY) $$@.tmp -O elf32-x86-64 $$@ rm -f $$@.tmp endif