Subject: Re: tooldir.NetBSD-4.99.31-i386/bin/nbconfig: not found
To: Kenneth Freidank <kennethcf@earthlink.net>
From: Sarton O'Brien <bsd-xen@roguewrt.org>
List: current-users
Date: 10/12/2007 15:27:34
On Fri, 12 Oct 2007 12:37:09 pm Kenneth Freidank wrote:
> I thought "build.sh" would always use defaults if you did not specify.
> I did not specify the tools directory when I built the release, so
> "build.sh" created a default dir.  I did not specify a tools dir when
> building my kernel (kernel=T5048), so I assumed "build.sh" would use the
> default, but apparently that did not work.

Certain parameters apply defaults when they are not explicitly stated.

Tools is particularly picky due to the nature of an independent build 
environment.

When doing bulk builds like distribution and release, it will assume a tooldir 
location based on the active kernel, as you have witnessed from previous 
experience ;)

> To keep from tripping myself during further OS builds, I will always
> specify a tools directory..
>     - OR -
> ...write down the tools dir created by the first execution of tools,
> build, distribution, or release, and then specify that directory in all
> subsequent builds.

The default tooldir will always be named after the active kernel.

Testing a generic invocation of:

./build.sh kernel=GENERIC

on my system here finds the tooldir associated with my active kernel with no 
errors.

> Does anyone know if a similar situation exists with either the "obj"
> (i.e. -O option) or "destdir" (i.e. -D option) directories?  Must I
> always specify them as well in some build.sh commands?

Generally ... no, assuming you are specifying the right parameter to 
build.sh ... but ... in instances where you experience a build failure and 
no-one else is, it can be useful to start with a clean obj dir.

Having double-checked how my system responds to the scenarios you have listed, 
I would say your best bet to avoid trouble when building is to initiate a:

./build.sh tools

Which you are probably getting sick of hearing :)

Sarton