Subject: Re: Unable to build GENERIC
To: Tillman Hodgson <tillman@seekingfire.com>
From: Wouter Klouwen <dublet@dublet.org>
List: port-sparc
Date: 09/02/2004 11:40:31
Tillman Hodgson(tillman@seekingfire.com) said 2004.09.01 10:36:31 +0000:
> On Wed, Sep 01, 2004 at 05:46:47PM +0200, Wouter Klouwen wrote:
> > http://www.netbsd.org/Documentation/kernel/#how_to_build_a_kernel
> 
> Which you'll note is chapter 9 from the NetBSD Guide (the FreeBSD
> documentation is called the Handbook").

My bad. ;)

> The instructions from Chapter 9 of the NetBSD Guide don't refer to
> build.sh ...  should I looking at Chapter 8 (Using the build.sh
> front-end) rather than Chapter 9 (Compiling the kernel)?

There are two situations:
1. Rebuilding a kernel because you have new hardware or need a kernel
   option.
2. Updating your system with a new kernel.

In situation 1 your kernel and userland source will be in sync with the
userland you actually run, presumably. In this case you can use the manual
procedure, if you wish, although build.sh is less error prone.

In situation 2, it is very likely that your `config' is out of sync with
your config file, and will crap out while parsing, often on bogus errs. Here
you will want build.sh.

> > What you want is:
> > 	# build.sh tools kernel=GENERIC
> 
> I'll read over Chapter 8 and give that a try, thanks.

I'm not quite sure whether chapter 8 gives you the information you want. The
URI in my last email refers to the documentation on building a kernel, which
does use build.sh, and doesn't cover cross building or other things which
might be confusing.

> -T
	--Wouter