[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] xtf: allow selecting objcopy binary to use



Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
---
 build/common.mk | 1 +
 build/gen.mk    | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

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
 
-- 
2.7.4 (Apple Git-66)


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.