This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-devel] [PATCH] [RESEND] ioemu-remote: fix cross compilation.

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] [RESEND] ioemu-remote: fix cross compilation.
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Thu, 28 Aug 2008 11:26:02 +0900
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 27 Aug 2008 19:26:23 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
>From 6dd3a58c8a9fa25d56aa258eda70871710951da0 Mon Sep 17 00:00:00 2001
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Mon, 25 Aug 2008 14:27:49 +0900
Subject: [PATCH] fix cross compilation.

When cross compile, INSTALL is set to cross-install by --install
configure option.
However it is overwritten by including $(XEN_ROOT)/tools/Rules.mk
so that install command fails to strip as follows.
So after the include set INSTALL again when --install is specified
to configure.

> install -m 755 -s qemu-img-xen  "/xen-unstable.hg/dist/install/usr/bin"
strip: Unable to recognise the format of the input file 
> install: strip process terminated abnormally

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
 xen-setup |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/xen-setup b/xen-setup
index 7f8768d..88f56dd 100755
--- a/xen-setup
+++ b/xen-setup
@@ -21,6 +21,13 @@ ln -sf ../Makefile.target $target/Makefile
 ln -sf ../xen-config.mak $target/config.mak
 cat xen-config-host.mak >>config-host.mak
+# even if --install is specified to configure to set INSTALL,
+# "include $(XEN_ROOT)/tools/Rules.mk" overrides INSTALL, so set it again.
+echo $@ | grep -q -- --install
+if [ $? -eq 0 ]; then
+       grep INSTALL config-host.mak >>config-host.mak
 sed -e 's,qemu,xen/qemu,' config-host.h >config-host.h.new
 echo '#include "xen-config-host.h"' >>config-host.h.new

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] [RESEND] ioemu-remote: fix cross compilation., Isaku Yamahata <=