Subject: Re: kernel 'make install' problem?
To: Alan Barrett <apb@cequrux.com>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: current-users
Date: 05/28/2006 12:11:36
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?

		--Steven M. Bellovin, http://www.cs.columbia.edu/~smb