Subject: RE: Cross compiling
To: None <port-hpcmips@netbsd.org>
From: Tim Underwood <TimU@hightouchinc.com>
List: port-hpcmips
Date: 08/20/2004 07:38:43
Thanks.  I just confirmed for myself that the hpcmips binaries are ELF.

While driving in to work this morning (after waking up at 3am thinking
about it - it's a programmer thing...) I wondered if it is easier to do
the following:

1.  Get netbsd i386 install tarfiles.
2.  Untar all netbsd tarfiles at a "root" directory (i.e. same location)
3.  use chroot to make that directory your root.


Doing that, except for the kernel - you are using all the "proper"
binaries for netbsd, gcc, make/gmake, etc.  All the include files,
libraries, etc.  You could even set up a script file to get the proper
environment and shell once you've chroot'ed over there.

Any reason why that won't work?

If it does, I have a cross-compile system in about 10 minutes.

> -----Original Message-----
> From: port-hpcmips-owner@NetBSD.org=20
> [mailto:port-hpcmips-owner@NetBSD.org] On Behalf Of Noriyuki Soda
> Sent: Friday, August 20, 2004 7:05 AM
> To: Tim Underwood
> Cc: port-hpcmips@netbsd.org
> Subject: Re: Cross compiling
>=20
> >>>>> On Fri, 20 Aug 2004 06:23:03 -0500,
> 	"Tim Underwood" <tim@underwoodfamily.org> said:
>=20
> > Does anyone have information on how to get Linux to X-compile for=20
> > netbsd-hpcmips?
>=20
> It's really easy these days.
> It's just 1. Grub netbsd source tree, 2. Use build.sh at the=20
> top of the source tree.
>=20
> See also BUILDING and UPDATING file in the source tree and=20
> the following web page:
> http://www.netbsd.org/guide/en/chap-build.html
>=20
> > However, I don't know if netbsd uses the ELF format binary.
>=20
> NetBSD does use ELF on all platforms (well, excpet pc532) now.
> --
> soda
>=20
>=20