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

[Xen-changelog] [xen-unstable] tools build: add cross-install to find the right "strip"



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1218448197 -3600
# Node ID f60c565e2ca24bcf5063da8f0de9e3fef192d451
# Parent  d24bc5f549ba2f1384c928456f86793fc53e66b9
tools build: add cross-install to find the right "strip"

Signed-off-by: Aron Griffis <aron@xxxxxx>
---
 tools/Makefile      |    7 +++++--
 tools/cross-install |    8 ++++++++
 2 files changed, 13 insertions(+), 2 deletions(-)

diff -r d24bc5f549ba -r f60c565e2ca2 tools/Makefile
--- a/tools/Makefile    Mon Aug 11 11:04:52 2008 +0900
+++ b/tools/Makefile    Mon Aug 11 10:49:57 2008 +0100
@@ -38,8 +38,10 @@ endif
 
 # For the sake of linking, set the sys-root
 ifneq ($(CROSS_COMPILE),)
+CROSS_BIN_PATH ?= /usr/$(CROSS_COMPILE:-=)/bin
 CROSS_SYS_ROOT ?= /usr/$(CROSS_COMPILE:-=)/sys-root
-export CROSS_SYS_ROOT
+export CROSS_SYS_ROOT # exported for check/funcs.sh
+export CROSS_BIN_PATH # exported for cross-install.sh
 endif
 
 .PHONY: all
@@ -57,7 +59,8 @@ ifneq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_
 ifneq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
 IOEMU_CONFIGURE_CROSS ?= --cpu=$(XEN_TARGET_ARCH) \
                         --cross-prefix=$(CROSS_COMPILE) \
-                        --interp-prefix=$(CROSS_SYS_ROOT)
+                        --interp-prefix=$(CROSS_SYS_ROOT) \
+                        --install=$(CURDIR)/cross-install
 endif
 
 ioemu/config-host.mak:
diff -r d24bc5f549ba -r f60c565e2ca2 tools/cross-install
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/cross-install       Mon Aug 11 10:49:57 2008 +0100
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# prepend CROSS_BIN_PATH to find the right "strip"
+if [ -n "$CROSS_BIN_PATH" ]; then
+    PATH="$CROSS_BIN_PATH:$PATH"
+fi
+
+exec install "$@"

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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