Subject: Re: 'make release' builds kernels in source tree?
To: John Kohl <jtk@kolvir.arlington.ma.us>
From: Frederick Bruckman <fb@enteract.com>
List: current-users
Date: 03/20/2000 11:57:02
On Mon, 20 Mar 2000, John Kohl wrote:

> I was trying (for the first time) to 'make release' in my tree.  I use
> objdirs (single architecture only), yet the kernel builds of GENERIC,
> etc. were done in the kernel source tree, not in the obj tree.
> My disk filled up and it failed.
> 
> The release builds should be done in the obj tree somewhere, right?
> Time for some makefile hacking?

You can build the distrib stuff using an obj tree, but "make obj"
won't descend into that directory by itself. You have to "cd
/usr/src/distrib; make obj" (and "cd /usr/src/distrib/i386/floppies;
make obj", for i386).

I don't think it's yet possible to build a kernel using an obj tree,
even though this feature is often requested. To make it so, you'd need
to first add a generic "obj" target to each
sys/arch/<arch>/conf/Makefile.<arch>, also to include bsd.obj.mk, and
hopefully not much else.