All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0 of 2] Make tools cross-friendly
@ 2008-01-19  4:02 Aron Griffis
  2008-01-19  4:02 ` [PATCH 1 of 2] Make tools/Makefile cross-friendly Aron Griffis
  2008-01-19  4:02 ` [PATCH 2 of 2] Make tools/check scripts cross-friendly Aron Griffis
  0 siblings, 2 replies; 9+ messages in thread
From: Aron Griffis @ 2008-01-19  4:02 UTC (permalink / raw)
  To: xen-devel; +Cc: xen-ia64-devel

Hi,

With these patches I'm able to cross-build all of
xen-unstable.hg, using the same line that has previously
worked only for the hypervisor and kernel:

make -j1 XEN_TARGET_ARCH=ia64 CROSS_COMPILE=ia64-linux-gnu-

In order to make this work, the sys-root containing the
include files and libraries should be mounted on, for
example, /usr/ia64-linux-gnu/sys-root/

I intend to post a howto on the wiki for building xen/ia64
on fedora8/x86_64, including the rpms and a sys-root image.
It should be trivially adaptable to other architectures.
I'm hoping that this procedure will make it easier to avoid
accidental breakages by making it relatively easy to test
builds for alternative architectures.

Thanks,
Aron

17 files changed, 160 insertions(+), 224 deletions(-)
tools/Makefile                  |   15 +++++-
tools/check/check_brctl         |   24 ++---------
tools/check/check_crypto_lib    |   20 +--------
tools/check/check_curl          |   41 +++---------------
tools/check/check_iproute       |   25 +++--------
tools/check/check_openssl_devel |   12 -----
tools/check/check_python        |   11 -----
tools/check/check_python_devel  |   11 -----
tools/check/check_python_xml    |    9 +---
tools/check/check_udev          |   31 +++-----------
tools/check/check_x11_devel     |   15 +-----
tools/check/check_xgettext      |   12 -----
tools/check/check_xml2          |   34 ++-------------
tools/check/check_zlib_devel    |   12 -----
tools/check/check_zlib_lib      |   18 +-------
tools/check/chk                 |    9 +---
tools/check/funcs.sh            |   85 +++++++++++++++++++++++++++++++++++++++

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCH 0 of 2] Make tools cross-friendly, try 2
@ 2008-01-21 15:29 Aron Griffis
  2008-01-21 15:29 ` [PATCH 2 of 2] Make tools/check scripts cross-friendly Aron Griffis
  0 siblings, 1 reply; 9+ messages in thread
From: Aron Griffis @ 2008-01-21 15:29 UTC (permalink / raw)
  To: xen-devel; +Cc: Christoph.Egger, xen-ia64-devel

Hi,

This is an update of the patchset originally posted here:

http://lists.xensource.com/archives/html/xen-devel/2008-01/msg00620.html

This update includes changes suggested by Christoph's review,
in particular:
- fix vnconfig typo
- make the ldconfig logic better

That last fix actually behaves a bit differently than
before, but I think it's better to alert the user than
assume we can create the cache.  Here's the delta:

 	# This relatively common in a sys-root; libs are installed but
-	# ldconfig hasn't run there, so ldconfig -p won't work.  We can
-	# only fix it if it's writeable.
-	[ "$OS" != Linux ] || \
-	[ -f "$CROSS_SYS_ROOT/etc/ld.so.cache" ] || \
-	ldconfig -r "$CROSS_SYS_ROOT" && \
+	# ldconfig hasn't run there, so ldconfig -p won't work.
+	if [ "$OS" = Linux -a ! -f "$CROSS_SYS_ROOT/etc/ld.so.cache" ]; then
+	    echo "Please run ldconfig -r \"$CROSS_SYS_ROOT\" to generate ld.so.cache"
+	    # fall through; ldconfig test below should fail
+	fi
 	ldconfig -p ${CROSS_SYS_ROOT+-r "$CROSS_SYS_ROOT"} | grep -Fq "$1"
 	return $?

I did not revert the SunOS test.  I have a high degree of
confidence that it's correct, and IMHO it's better to be
consistent.

Thanks,
Aron

17 files changed, 160 insertions(+), 224 deletions(-)
tools/Makefile                  |   15 +++++-
tools/check/check_brctl         |   24 ++---------
tools/check/check_crypto_lib    |   20 +--------
tools/check/check_curl          |   41 +++---------------
tools/check/check_iproute       |   25 +++--------
tools/check/check_openssl_devel |   12 -----
tools/check/check_python        |   11 -----
tools/check/check_python_devel  |   11 -----
tools/check/check_python_xml    |    9 +---
tools/check/check_udev          |   31 +++-----------
tools/check/check_x11_devel     |   15 +-----
tools/check/check_xgettext      |   12 -----
tools/check/check_xml2          |   34 ++-------------
tools/check/check_zlib_devel    |   12 -----
tools/check/check_zlib_lib      |   18 +-------
tools/check/chk                 |    9 +---
tools/check/funcs.sh            |   85 +++++++++++++++++++++++++++++++++++++++

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-01-21 15:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-19  4:02 [PATCH 0 of 2] Make tools cross-friendly Aron Griffis
2008-01-19  4:02 ` [PATCH 1 of 2] Make tools/Makefile cross-friendly Aron Griffis
2008-01-19  8:26   ` Keir Fraser
2008-01-19 14:48     ` Aron Griffis
2008-01-19 15:33       ` Aron Griffis
2008-01-19  4:02 ` [PATCH 2 of 2] Make tools/check scripts cross-friendly Aron Griffis
2008-01-21 11:05   ` Christoph Egger
2008-01-21 14:50     ` Aron Griffis
  -- strict thread matches above, loose matches on Subject: below --
2008-01-21 15:29 [PATCH 0 of 2] Make tools cross-friendly, try 2 Aron Griffis
2008-01-21 15:29 ` [PATCH 2 of 2] Make tools/check scripts cross-friendly Aron Griffis

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.