From: Aron Griffis <aron@hp.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: xen-devel@lists.xensource.com, xen-ia64-devel@lists.xensource.com
Subject: Re: Re: [Xen-devel] [PATCH 2 of 2] cross-build fixes in ioemu-remote
Date: Fri, 1 Aug 2008 13:22:23 -0400 [thread overview]
Message-ID: <20080801172223.GC30058@fc.hp.com> (raw)
In-Reply-To: <18579.14670.222401.697922@mariner.uk.xensource.com>
Ian Jackson wrote: [Fri Aug 01 2008, 12:26:54PM EDT]
> Aron Griffis writes ("Re: [Xen-ia64-devel] Re: [Xen-devel] [PATCH 2 of 2] cross-build fixes in ioemu-remote"):
> > - --interp-prefix=$(CROSS_SYS_ROOT)
> > + --interp-prefix=$(CROSS_SYS_ROOT) \
> > + --install='env PATH="$(CROSS_BIN_PATH):$$$$PATH" install'
>
> This is a bit bizarre (not to mention the fact that the number
> of $'s will depend on undocumented properties of the way qemu's
> configure inteprets that option).
qemu's configure uses quoting properly and applies no
interpretation on the way through. The dollars are doubled once
for the Makefile where this is set, once for the inner Makefile
where it is used.
However... there is a Solaris hack in configure that will break
with any --install option other than a bare word. And I agree
with you anyway, it's a fragile approach.
> Why not just set PATH directly and export it ?
qemu expects "gcc" and the like to refer to the host toolchain.
I think we only want the PATH set for install. Ideally there
would be an /usr/bin/ia64-linux-gnu-install to accompany the
others and use the right strip, but oh well.
> But in general I think this is a reasonable approach.
How about...
# HG changeset patch
# User Aron Griffis <aron@hp.com>
# Date 1217610812 14400
# Node ID 714215c06a98ea845e3f25371945d62abb1c18c7
# Parent f69a23b209c4ab04827051734e37f095607400ed
add cross-install to find the right "strip"
Signed-off-by: Aron Griffis <aron@hp.com>
diff --git a/tools/Makefile b/tools/Makefile
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -38,8 +38,10 @@
# 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_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 --git a/tools/cross-install b/tools/cross-install
new file mode 100755
--- /dev/null
+++ b/tools/cross-install
@@ -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 "$@"
next prev parent reply other threads:[~2008-08-01 17:22 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-31 14:51 [PATCH 0 of 2] partly fix cross-build of ioemu-remote Aron Griffis
2008-07-31 14:51 ` [PATCH 1 of 2] pass IOEMU_CONFIGURE_CROSS to ioemu-remote/xen-setup Aron Griffis
2008-07-31 14:51 ` [PATCH 2 of 2] cross-build fixes in ioemu-remote Aron Griffis
[not found] ` <m2n.s.1KOZmg-002Rh9@chiark.greenend.org.uk>
2008-07-31 15:16 ` [Xen-devel] " Ian Jackson
2008-07-31 15:29 ` [Xen-ia64-devel] " Samuel Thibault
2008-07-31 16:48 ` Ian Jackson
2008-07-31 19:21 ` Aron Griffis
2008-08-01 16:26 ` Ian Jackson
2008-08-01 17:22 ` Aron Griffis [this message]
2008-08-04 22:31 ` Aron Griffis
2008-08-05 7:40 ` Keir Fraser
2008-08-11 9:15 ` Re: [Xen-devel] " Ian Jackson
2008-07-31 15:34 ` Samuel Thibault
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080801172223.GC30058@fc.hp.com \
--to=aron@hp.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
--cc=xen-ia64-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.