]> xenbits.xensource.com Git - people/royger/xen-test-framework.git/commitdiff
Allow selecting objcopy binary to use
authorRoger Pau Monne <roger.pau@citrix.com>
Tue, 10 May 2016 12:00:27 +0000 (14:00 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 10 May 2016 13:07:12 +0000 (14:07 +0100)
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
build/common.mk
build/gen.mk

index 1120a167641244f09998303bf130770fed672e52..13c468ef7b56879cf57fd8cbc3752d77ce130ae9 100644 (file)
@@ -2,6 +2,7 @@ ROOT := $(abspath $(CURDIR)/../..)
 DESTDIR ?= $(ROOT)/dist
 PREFIX ?= $(ROOT)
 CC ?= gcc
+OBJCOPY ?= objcopy
 
 ALL_CATEGORIES     := special functional xsa utility
 
index d683560141c24e889d8d283053147e3d13e73dec..839c5a0aa7080680c8e5feabab0e82a930e8fd92 100644 (file)
@@ -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