All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aron Griffis <aron@hp.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: xen-ia64-devel@lists.xensource.com,
	xen-devel@lists.xensource.com,
	Samuel Thibault <samuel.thibault@eu.citrix.com>
Subject: Re: [Xen-ia64-devel] Re: [PATCH 2 of 2] cross-build fixes in ioemu-remote
Date: Thu, 31 Jul 2008 15:21:16 -0400	[thread overview]
Message-ID: <20080731192115.GB20132@fc.hp.com> (raw)
In-Reply-To: <18577.60623.557383.261705@mariner.uk.xensource.com>

Ian Jackson wrote:  [Thu Jul 31 2008, 12:48:15PM EDT]
> Samuel Thibault writes ("Re: [Xen-ia64-devel] Re: [Xen-devel] [PATCH 2 of 2] cross-build fixes in ioemu-remote"):
> > I have the same issue when cross-compiling some other projects.  I
> > wonder how install would be able to know which strip command it should
> > use.
> 
> Perhaps it should call STRIP if it exists, or perhaps the
> cross-building setup should provide a `strip' which will always DTRT
> (perhaps by examining the file to decide which real strip to invoke).

I don't think it's necessary to provide one that will DTRT.  The
compiler and linker don't need that abstraction, and "install" is
only called for stuff that will be installed on the target
system.

qemu seems to have the ability to set the install command using
configure.  Seems something like the following should work,
except that (1) i386-dm/hookstarget.mak uses $(INSTALL_PROG)
which seems to be defined outside of the ioemu tree, and (2) I'm
having enough trouble cross-building qemu that it's hard to test.

Thanks,
Aron

diff -r 40daf3257cad tools/Makefile
--- a/tools/Makefile	Thu Jul 31 10:51:30 2008 -0400
+++ b/tools/Makefile	Thu Jul 31 15:18:24 2008 -0400
@@ -36,9 +36,11 @@ SUBDIRS-$(PYTHON_TOOLS) += pygrub
 SUBDIRS-$(PYTHON_TOOLS) += pygrub
 endif
 
-# For the sake of linking, set the sys-root
+# For the sake of linking, set the path to "strip" and the sys-root
 ifneq ($(CROSS_COMPILE),)
+CROSS_BIN_PATH ?= /usr/$(CROSS_COMPILE:-=)/bin
 CROSS_SYS_ROOT ?= /usr/$(CROSS_COMPILE:-=)/sys-root
+# export sys-root to environment for check/funcs.sh
 export CROSS_SYS_ROOT
 endif
 
@@ -57,7 +59,8 @@ ifneq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_
 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='env PATH="$(CROSS_BIN_PATH):$$$$PATH" install'
 endif
 
 ioemu/config-host.mak:

  reply	other threads:[~2008-07-31 19:21 UTC|newest]

Thread overview: 14+ 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 [this message]
2008-08-01 16:26           ` Ian Jackson
2008-08-01 17:22             ` Re: [Xen-devel] " Aron Griffis
2008-08-04 22:31               ` [Xen-ia64-devel] " 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
     [not found] <20080805123152.GI20132@fc.hp.com>
     [not found] ` <C4BE0A7C.2505C%keir.fraser@eu.citrix.com>
     [not found]   ` <20080805145031.GA24238@fc.hp.com>
     [not found]     ` <20080806020249.GA32115%yamahata@valinux.co.jp>
2008-08-06 13:18       ` [Xen-ia64-devel] " Aron Griffis

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=20080731192115.GB20132@fc.hp.com \
    --to=aron@hp.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=samuel.thibault@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.