All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Egger <Christoph.Egger@amd.com>
To: xen-devel@lists.xensource.com
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>,
	Keir Fraser <Keir.Fraser@eu.citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: [PATCH] minios: minor buildsystem fixes
Date: Wed, 15 Jul 2009 16:54:54 +0200	[thread overview]
Message-ID: <200907151654.54880.Christoph.Egger@amd.com> (raw)
In-Reply-To: <alpine.DEB.2.00.0907151331190.1682@kaball-desktop>

On Wednesday 15 July 2009 14:35:37 Stefano Stabellini wrote:
> On Wed, 15 Jul 2009, Christoph Egger wrote:
> > The current approach works for Linux only.
> > NetBSD's base system is designed for cross-building.
> > My roadmap is to change the way how to build mini-os/stubdom
> > fundamentally:
> >
> > The new infrastructure I have in mind will allow to choose if you use
> > newlib, libz, lwip and pciutils or use the native libs from the
> > base system.
> >
> > Linux build will default to first, NetBSD build will default to latter
> > one.
>
> I like the idea, could you please explain with a little bit more details
> how the crossbuilding works on NetBSD?

The headers are in /usr/include. The arch-dependent headers are in
/usr/include/<arch>/. These are automatically included by the standard
headers.

The native libs are in /lib and in /usr/lib/. The libs for the other 
architectures are in /usr/lib/<arch>/.

On x86, it is enough to specify -m64 or -m32 to tell gcc and its linker
if you want to build a binary for amd64 or i386.

If you want to build for other archs, you build a toolchain first which is
very easy with the build.sh script.


> Would it be possible to use NetBSD libc instead of newlib even on Linux?

It's not just to take the libc sources. You need the whole infrastructure
around it which would let you very likely end up in a half new linux 
distribution. I don't think, this is what you want. :)

BTW: I don't mind if you want to port Xen to a VAX :-D

Christoph


-- 
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Thomas M. McCoy, Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632

  parent reply	other threads:[~2009-07-15 14:54 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-15  9:42 [PATCH] minios: minor buildsystem fixes Christoph Egger
2009-07-15 10:40 ` Keir Fraser
2009-07-15 12:27   ` Christoph Egger
2009-07-15 12:35     ` Stefano Stabellini
2009-07-15 12:39       ` Keir Fraser
2009-07-15 12:43         ` Stefano Stabellini
2009-07-15 12:59           ` Keir Fraser
2009-07-15 14:54       ` Christoph Egger [this message]
2009-07-15 16:03 ` Ian Jackson
2009-07-15 16:13   ` Stefano Stabellini
2009-07-15 17:24   ` Samuel Thibault
2009-07-16 12:17   ` Christoph Egger
2009-07-16 13:46     ` Samuel Thibault
2009-07-16 13:53     ` Ian Jackson
2009-07-15 16:39 ` Stefano Stabellini

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=200907151654.54880.Christoph.Egger@amd.com \
    --to=christoph.egger@amd.com \
    --cc=Keir.Fraser@eu.citrix.com \
    --cc=samuel.thibault@ens-lyon.org \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-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.