On Sat, Feb 01, 2003 at 10:49:10PM -0800, Darren Pilgrim wrote: > Lowell Gilbert wrote: > >Darren Pilgrim <[EMAIL PROTECTED]> writes: > >>There are two sets of commands you can use to build a kernel in FreeBSD: > >> > >>"Procedure 1" is the old way: config, make depend, make, make > >>install. "Procedure 2" is the make kernel sequence from makeworld. > >> > >>Section 9.3 of the Handbook says I should use procedure 1 if I haven't > >>updated my source tree. I can understand then need to use procedure 2 > >>if I've updated my source tree, but why shouldn't I use it with an > >>unmodified tree? > > > >There's no reason you shouldn't. That section of the handbook > >explicitly says that you can use either procedure in that case. > > Hey you're right. In the bulleted list just before the two procedures are > listed it says, "#If you are building a new kernel without updating the > source code...you can use either procedure." After the two procedures are > listed, it says, "If you have not upgraded your source tree in any > way...you should use the config, make depend, make, make install sequence." > That sounds contradictory to me. What do you think?
I may not be 100% right on this, but I believe the main difference is that 'make buildkernel' will build the kernel using the toolchain left in /usr/obj by a previous 'make buildworld', whereas the 'config' method uses the toolchain currently installed on your machine. That's why you should use buildkernel after a cvsup, to make sure your kernel is built against the same stuff your about to install with 'make installworld'. If you're just building a new kernel from the same sources, I guess either method would work, although you'd need to have the /usr/obj from your last buildworld still hanging around, so using config might be more convenient. Maybe that part of the handbook could stand a little clarification? Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" [EMAIL PROTECTED] | 0xAA775B8B | -- Anon To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message