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

[Xen-devel] [PATCH] ioemu-remote: 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 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


 


Rackspace

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