Subject: RE: Cross compiling
To: Tim Underwood <TimU@hightouchinc.com>
From: Noriyuki Soda <soda@sra.co.jp>
List: port-hpcmips
Date: 08/20/2004 22:47:42
>>>>> On Fri, 20 Aug 2004 08:12:51 -0500,
"Tim Underwood" <TimU@hightouchinc.com> said:
> 1. Create a chroot'ed environment to start the build from.
No, you don't need to use chroot.
You can specify arbitrary directory for source, object and
distribution trees.
> 2. Get source from
> ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/tar_files/src/
If you want to use NetBSD-current, yes.
But if you'd like to use NetBSD-1.6ish, you can use the following
URLs instead.
ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/source/sets/
(latest official release)
ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-release-1-6/tar_files/src/
(latest source tree of 1.6.x branch)
Note that, if you'd like to use -current userland, you need to
boot -current kernel before installing the userland.
> 3. Build the "tools" for my selected target environment.
> 4. Use the generated gcc (ld, etc.), from step 3 to build hpcmips
> binaries
If you will build 1.6ish binaries, yes.
But if you will build -current (or 2.0ish) binaries, the following
one command does what you want:
./build.sh -m hpcmips -T /SOMEWHERE/tool.hpcmips -D /SOMEWHERE/destdir.hpcmips tools kernel=GENERIC
(It may be good idea to provide "-M /somewhere/obj.hpcmips" to make
the source directory read-only)
--
soda