From owner-freebsd-questions@FreeBSD.ORG Wed Nov 24 12:36:46 2004 Return-Path: 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 69DC916A4CE for ; Wed, 24 Nov 2004 12:36:46 +0000 (GMT) Received: from lakermmtao09.cox.net (lakermmtao09.cox.net [68.230.240.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD54643D39 for ; Wed, 24 Nov 2004 12:36:45 +0000 (GMT) (envelope-from conrads@cox.net) Received: from dolphin.local.net ([68.11.30.24]) by lakermmtao09.cox.net (InterMail vM.6.01.04.00 201-2131-117-20041022) with ESMTP <20041124123645.IYMC20678.lakermmtao09.cox.net@dolphin.local.net>; Wed, 24 Nov 2004 07:36:45 -0500 Received: from dolphin.local.net (localhost.local.net [127.0.0.1]) by dolphin.local.net (8.13.1/8.13.1) with SMTP id iAOCaiiM074359; Wed, 24 Nov 2004 06:36:44 -0600 (CST) (envelope-from conrads@cox.net) Date: Wed, 24 Nov 2004 06:36:39 -0600 From: "Conrad J. Sabatier" To: Nikolas Britton Message-ID: <20041124063639.7989b859@dolphin.local.net> In-Reply-To: <41A46DF0.3000008@nbritton.org> References: <20041124052857.85B3.GERARD-SEIBERT@rcn.com> <41A46DF0.3000008@nbritton.org> X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; amd64-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: gerard-seibert@rcn.com cc: freebsd-questions@freebsd.org Subject: Re: make arguments and buildworld X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Nov 2004 12:36:46 -0000 On Wed, 24 Nov 2004 05:18:08 -0600, Nikolas Britton wrote: > Gerard Seibert wrote: > > >I am going to do a fresh install of FreBSD 5.3 this weekend on my > >computer. Immediately after the installation I want to do a > >buildworld and install a custom kernel. > > > >My question is what special arguments should I use in the 'make.conf' > >file for this project. Is it really necessary to change this file at > >all? I was reading the handbook and it mentioned the 'CFLAGGS' entry > >and a few others. > > > > > I'd recommend leaving CFLAGS and COPTFLAGS alone (I've only managed to > make problems when I set these), Well, that, of course, is a matter of opinion. If you want the most optimization possible, you could try using "-O2" or even "-O3". I've been using "-O3" quite successfully here lately, with the exception of a couple of ports which required changing it to "-O2". I believe the "-pipe" switch is on by default (as well as "-O", but if not, it does help to speed up builds a bit as well. > but I would change CPUTYPE to your > CPU Type, options are: > > AMD CPU: athlon-mp, athlon-xp, athlon-4, athlon-tbird, athlon, k6-3, > k6-2, k6, k5 And don't forget athlon64! In fact, I initially setup my amd64 box by installing from an i386 CD set I had here, then cross-compiling the world and kernel using "-march=athlon64 -m64". > Intel CPU: p4, p3, p2, i686, i586/mmx, i586, i486, i386 > > If you want to rebuild a custom kernel add this: > KERNCONF=FOOBAR And copy /usr/src/sys/${ARCH}/conf/GENERIC to /usr/src/sys/${ARCH}/conf/FOOBAR and edit to taste, where ${ARCH} equals your machine architecture (i386, amd64, etc.). > -------------------------------------------------------------- > For your kernel config file comment out everything you don't need > (make sure you have a "working" kernel b4 you buildworld), i.g: > > cpu I486_CPU > cpu I586_CPU > device eisa > device atapifd # ATAPI floppy drives > device atapist # ATAPI tape drives > all the SCSI Controllers > etc. > Don't forget to add in sound support etc. etc. > > --------------------------------------------------------------- > then buildworld: > # cvsup -g -L 2 foobar-supfile (set the cvs release tag to RELENG_5_3) > # cd /usr/src > # make -j2 buildworld && make -j2 buildkernel && make -j2 > Installkernel && reboot > test your new kernel, if it works drop down to single user mode > # shutdown now > # cd /usr/src > # make installworld > # reboot > If system is still working then mergemaster > # mergemaster > # reboot > Done. > > rm -r /usr/obj/* > > >I would welcome any feedback that is available. > > > >Thanks! -- Conrad J. Sabatier -- "In Unix veritas"