Skip to contentSkip to conversation

xtf: allow selecting objcopy binary to use

PATCH In review Roger Pau Monne 2 participants 2 messages May 10, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xtf: allow selecting objcopy binary to use

---
 build/common.mk | 1 +
 build/gen.mk    | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
build/common.mk +1 -0
index 1120a16..13c468e 100644
@@ -2,6 +2,7 @@ ROOT := $(abspath $(CURDIR)/../..)
 DESTDIR ?= $(ROOT)/dist
 PREFIX ?= $(ROOT)
 CC ?= gcc
+OBJCOPY ?= objcopy
 
 ALL_CATEGORIES     := special functional xsa utility
 
build/gen.mk +1 -1
index d683560..839c5a0 100644
@@ -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 [email protected]
-	objcopy [email protected] -O elf32-x86-64 $$@
+	$$(OBJCOPY) [email protected] -O elf32-x86-64 $$@
 	rm -f [email protected]
 endif
 
Signature · 7 lines
2.7.4 (Apple Git-66)


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel