Subject: Re: No nonexistent/bin/nbmake, needs building.
To: None <current-users@NetBSD.org>
From: Alan Barrett <apb@cequrux.com>
List: current-users
Date: 04/06/2007 17:02:03
On Thu, 05 Apr 2007, Jeremy C. Reed wrote:
> ./build.sh -U kernel=JCR20070405
> 
> and it did:  [built nbmake]

If you use build.sh -T TOOLDIR, then nbmake is built only when
build.sh thinks it's necessary.  This is documented (not very well)
in src/BUILDING, where it talks about the -T option to build.sh.  By
implication, if you don't pass -T TOOLDIR to build.sh, nbmake is always
built.

> What is the purpose of rebuilding make over and over again?

There's no point.  build.sh could be smarter about this.

> In fact, I don't want any tools made as I am running current and building 
> a current kernel. It is a waste of time.

Then don't use build.sh, and don't complain when you are running
current-as-of-yesterday and you try to build current-as-of-today and it
fails.

> I also tried:
> 
> ./build.sh -U -T tools kernel=JCR20070405
> 
> But same problem. (I have tools there but no nbmake there.)

You should not have the same problem.  It should build nbmake the
first time, but not on subsequent occasions.  It will build the
nbmake-${MACHIEN} wraper every time, but this is quick as it's just a
simple shell script to set some variables before invoking nbmake.  Are
you sure that's not what happened?

--apb (Alan Barrett)