Date: Sun, 2 Feb 2003 10:31:20 +0000 From: Scott Mitchell <scott.mitchell@mail.com> To: Darren Pilgrim <dmp@pantherdragon.org> Cc: Lowell Gilbert <freebsd-questions-local@be-well.no-ip.com>, questions@FreeBSD.ORG Subject: Re: Why should I use `config;make depend;make...` instead of `make kernel` when building from a stock source tree? (ref. Handbook sec. 9.3) Message-ID: <20030202103120.GC22208@fishballoon.dyndns.org> In-Reply-To: <3E3CBF66.5070609@pantherdragon.org> References: <3E3C77F0.6050805@pantherdragon.org> <44vg03la16.fsf@be-well.ilk.org> <3E3CBF66.5070609@pantherdragon.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Feb 01, 2003 at 10:49:10PM -0800, Darren Pilgrim wrote: > Lowell Gilbert wrote: > >Darren Pilgrim <dmp@pantherdragon.org> 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" scott.mitchell@mail.com | 0xAA775B8B | -- Anon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030202103120.GC22208>