make buildkernel fails without complete source tree

John Baldwin jhb at freebsd.org
Mon Jan 22 16:14:35 UTC 2007


On Sunday 21 January 2007 16:24, Ruslan Ermilov wrote:
> On Thu, Jan 18, 2007 at 01:48:14PM -0800, Murray Stokely wrote:
> > On 1/18/07, John Baldwin <jhb at freebsd.org> wrote:
> > ===================================================================
> > >-      { " sys",                "/usr/src/sys (FreeBSD kernel)",
> > >+      { " sys",                "/usr/src/sys (FreeBSD kernel; requires 
> > >'base'
> > >to build)",
> > 
> > I think this is a good solution.
> > 
> I don't think this is a good idea as it's not actually required.
> The sys/ part have traditionally been standalone.  And if you're
> not upgrading then "buildkernel" is just a convenience alias for
> config/make method.  Actually this method is always used except
> that in the buildkernel case it will use an upgraded toolchain
> if it was previously built by "buildworld".

It is required for buildkernel as otherwise there's no Makefile in /usr/src 
with a buildkernel target.  It's only not required if you do 'config, etc.' 
by hand, but 'make buildkernel' requires some sort of /usr/src/Makefile, 
obviously. :)

-- 
John Baldwin



More information about the freebsd-doc mailing list