From owner-freebsd-questions Sun Feb 2 2:32:46 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD2D737B408 for ; Sun, 2 Feb 2003 02:32:44 -0800 (PST) Received: from mta03-svc.ntlworld.com (mta03-svc.ntlworld.com [62.253.162.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65FBF43F43 for ; Sun, 2 Feb 2003 02:32:42 -0800 (PST) (envelope-from scott.mitchell@mail.com) Received: from fishballoon.dyndns.org ([80.4.125.54]) by mta03-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20030202103240.SZTT14341.mta03-svc.ntlworld.com@fishballoon.dyndns.org>; Sun, 2 Feb 2003 10:32:40 +0000 Received: from tuatara.goatsucker.org (tuatara [192.168.1.6]) by fishballoon.dyndns.org (8.12.3/8.12.3) with ESMTP id h12AWHbO037207; Sun, 2 Feb 2003 10:32:17 GMT (envelope-from scott@tuatara.goatsucker.org) Received: (from scott@localhost) by tuatara.goatsucker.org (8.12.6/8.12.6/Submit) id h12AVKUA048262; Sun, 2 Feb 2003 10:31:20 GMT (envelope-from scott) Date: Sun, 2 Feb 2003 10:31:20 +0000 From: Scott Mitchell To: Darren Pilgrim Cc: Lowell Gilbert , 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> References: <3E3C77F0.6050805@pantherdragon.org> <44vg03la16.fsf@be-well.ilk.org> <3E3CBF66.5070609@pantherdragon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E3CBF66.5070609@pantherdragon.org> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 4.7-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Feb 01, 2003 at 10:49:10PM -0800, Darren Pilgrim wrote: > Lowell Gilbert wrote: > >Darren Pilgrim 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