|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] [RESEND] ioemu-remote: fix cross compilation.
>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
`/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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] [RESEND] ioemu-remote: fix cross compilation.,
Isaku Yamahata <=
|
|
|
|
|