Subject: Re: kernel 'make install' problem?
To: None <current-users@netbsd.org>
From: Rui Paulo <rpaulo@fnop.net>
List: current-users
Date: 05/28/2006 17:32:55
At Sun, 28 May 2006 12:11:36 -0400,
Steven M. Bellovin wrote:
> 
> On Sun, 28 May 2006 17:52:13 +0200, Alan Barrett <apb@cequrux.com> wrote:
> 
> > On Sun, 28 May 2006, Steven M. Bellovin wrote:
> > > > > I just build a kernel, using build.sh.  As I usually do, I did a
> > > > > 'cd' to the build directory and did a 'make install'.  It failed
> > > > > with these messages:
> > [...]
> > > > > Using nbmake from the tools directory didn't help;
> > [...]
> > > Why should a kernel build (well, install) reference something outside
> > > of the build tree?
> > 
> > You should probably be using ${TOOLDIR}/bin/nbmake-${ARCH} instead of
> > /usr/bin/make or ${TOOLDIR}/bin/nbmake.  That will set some variables to
> > prevent references outside the build tree.
> > 
> Thanks; I'll do that.  I see that it sets 
> 
> 	MAKEFLAGS='-de -m /usr/src/share/mk MKOBJDIRS=yes'
> 
> would this have prevented the problem?

If your source tree is under /usr/src, then yes.

--
Rui Paulo <rpaulo@{fnop.net,NetBSD.org}>