From owner-freebsd-stable Tue Jul 11 1:31:19 2000 Delivered-To: freebsd-stable@freebsd.org Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (Postfix) with ESMTP id 3F99837B724; Tue, 11 Jul 2000 01:31:14 -0700 (PDT) (envelope-from dcs@newsguy.com) Received: from newsguy.com (p44-dn02kiryunisiki.gunma.ocn.ne.jp [211.0.245.109]) by peach.ocn.ne.jp (8.9.1a/OCN/) with ESMTP id RAA15977; Tue, 11 Jul 2000 17:30:58 +0900 (JST) Message-ID: <396ADB61.5736BF19@newsguy.com> Date: Tue, 11 Jul 2000 17:31:29 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,pt-BR,ja MIME-Version: 1.0 To: Greg Lehey Cc: Vivek Khera , Kris Kennaway , stable@FreeBSD.ORG Subject: Re: HEADS UP! Always use the 'make buildkernel' target to make yer kernels References: <14697.55301.614418.390096@onceler.kcilink.com> <20000711103710.B21954@wantadilla.lemis.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Greg Lehey wrote: > > Agreed. I tried it out and found a number of things I didn't like > about it. Basically, it's a completely different build process: > > 1. Before building, it removes the existing kernel build tree. > There's no good reason for this. make buildkernel -DNOCLEAN See also: # -DNO_KERNELCONFIG do not run config in ${MAKE} buildkernel # -DNO_KERNELDEPEND do not run ${MAKE} depend in ${MAKE} buildkernel > 2. It builds in a different tree (/usr/obj instead of > /usr/src/sys/compile). Is this a problem by itself? Having a RO /usr/src is good. :-) > These two points mean that if you later > want to go back and tune your kernel (change a driver parameter, > say), you can't just do a config; cd ../../compile/FOO; make, you > have to go the whole nine yards. See #1. > 3. It gives the kernel a different name. It _installs_ kernel with a different name. That makes it possible for one to keep multiple kernels lying around / easily. Granted, few people need that. I heard that this has been corrected in -current now. If so, *PLEASE MERGE THIS ASAP TO STABLE*. Asking people on stable to change their ways twice over the same thing is asbolutely unreasonable. Personally, I prefer different names, even though it annoyed the hell out of me at first. Until I changed my /boot/loader.conf :). > 4. It's just plain clumsy. MMmmm? In what way? A single command line does all the work for me, including variations on running config, with and without -r, and making depend or not. Perhaps your average kernel building procedure is much more complex than mine was... -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org capo@the.great.underground.bsdconpiracy.org _DES: The Book of Bruce has only one sentence in it, and it says "the actual directives of my cult are left as an exercise for the reader. Good luck." jkh: does it really include the 'good luck' part? EE: OK, I made that part up. EE: I figured it should sound a bit more cheery than how Bruce initially dictated it to me. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message