From owner-freebsd-doc Wed Jun 27 9:46:43 2001 Delivered-To: freebsd-doc@freebsd.org Received: from gekko.i-clue.de (server.ms-agentur.de [62.153.134.194]) by hub.freebsd.org (Postfix) with ESMTP id 8E6FC37B409 for ; Wed, 27 Jun 2001 09:46:38 -0700 (PDT) (envelope-from so@server.i-clue.de) Received: from i-clue.de (automatix.i-clue.de [192.168.0.112]) by gekko.i-clue.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id SAA29955; Wed, 27 Jun 2001 18:55:30 +0200 Message-ID: <3B3A0E6A.5963F798@i-clue.de> Date: Wed, 27 Jun 2001 18:48:42 +0200 From: Christoph Sold Reply-To: so@server.i-clue.de X-Mailer: Mozilla 4.75 [de] (WinNT; U) X-Accept-Language: de MIME-Version: 1.0 To: Rahul Siddharthan Cc: doc@FreeBSD.ORG Subject: Re: Handbook: Build world / build kernel References: <20010627183044.A77365@lpt.ens.fr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Rahul Siddharthan schrieb: > > I find the handbook section > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html > a bit confusing. Suppose you have upgraded the sources. In what > order do you do the following? > > o make buildworld > o make installworld > o make buildkernel > o make installkernel > > The section in question says > > Warning: If you have upgraded your sources since your last kernel > ^^^^^^ > build, you must use the make buildkernel method to build your kernel. > Otherwise, old utilities will be used to build the kernel, which will > probably fail. Do not use the config/make sequence to build your > kernel if you have updated the sources! > > Should that be last *world* build? I mean, what does the old kernel > have to do with old utilities being used to build the new kernel? No. It means if you CVSup'ed your source _after_ building a kernel, only the buildkernel method uses the new binaries in /usr/obj to generate the kernel. Other methods will build the kernel with userland binaries, which will be out of sync with the sources after make buildworld. > In that case, would the following sequence be correct? > o make buildworld > o make buildkernel > o make installkernel > o make installworld > o reboot > > Basically, is it safe to do "make buildkernel" before "make > installworld", ie with the old userland? Or do you need to do "make > installworld" before "make buildkernel"? If the latter, then while > you're doing "make buildkernel", your old kernel is living for a while > with your new userland: is that a problem? > > I'm willing to submit a patch if someone can clear my confusion... It is unsafe to build a kernel before you build a world in your object directory (usually /usr/obj). HTH -Christoph Sold To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message