Subject: Re: How to force using existing toolchain?
To: Luong Ngo <firstname.lastname@example.org>
From: David Laight <email@example.com>
Date: 07/12/2007 07:59:02
On Wed, Jul 11, 2007 at 06:02:05PM -0700, Luong Ngo wrote:
> I am brand new to make and build system in general and NetBSD in
> specific. But I need to build the NetBSD source tree, I only need the
> userland binaries and filesystem only, using the toolchains already
> existed. How do I do that?
As soon as your source tree gets updated to be later that the installed
system you'll find that the installed programs are no longer new enough
to build the new tree. In particular changes to the kernel config
program (to support new syntax) cause grief.
Run 'build.sh TOOLS' then use the created wrapper script (the sets alld
the environmemt variables to match the build) to build individual parts.
You probably also want to sort out a standard set of options to
build.sh itself - and run it from a script file. Specify an object
directory with -O in order to keep your source tree clean. (+ a few
David Laight: firstname.lastname@example.org