WARNING - OLD ARCHIVES

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/
Xen

xen-devel

[Top] [All Lists]

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] ioemu-remote: fix cross compilation.
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: 2008年8月25日 14:31:05 +0900
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: 2008年8月24日 22:31:29 -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
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 passed
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 
> `/xen-unstable.hg/dist/install/usr/bin/qemu-img-xen'
> 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
+fi
+
 sed -e 's,qemu,xen/qemu,' config-host.h >config-host.h.new
 echo '#include "xen-config-host.h"' >>config-host.h.new
 
-- 
1.6.0.rc0.42.g186458
-- 
yamahata
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-devel] Identifying pagetype in they hypervisor , Mike Sun
Next by Date: Re: [Xen-devel] XenAPI Java bindings , 梁波
Previous by Thread: [Xen-devel] Identifying pagetype in they hypervisor , Mike Sun
Next by Thread: [Xen-ia64-devel] Re: [Xen-devel] [PATCH] ioemu-remote: fix cross compilation. , Ian Jackson
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /