From owner-freebsd-questions@FreeBSD.ORG Sun May 6 18:43:30 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C546106566C for ; Sun, 6 May 2012 18:43:30 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 3AA8D8FC0C for ; Sun, 6 May 2012 18:43:30 +0000 (UTC) Received: from r56.edvax.de (port-92-195-20-192.dynamic.qsc.de [92.195.20.192]) by mx02.qsc.de (Postfix) with ESMTP id D49691E6F4; Sun, 6 May 2012 20:43:22 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q46IhMXR002054; Sun, 6 May 2012 20:43:22 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 6 May 2012 20:43:22 +0200 From: Polytropon To: Robert Bonomi Message-Id: <20120506204322.304c743d.freebsd@edvax.de> In-Reply-To: <201205061823.q46IN8uu067759@mail.r-bonomi.com> References: <201205061823.q46IN8uu067759@mail.r-bonomi.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: carmel_ny@hotmail.com, freebsd-questions@freebsd.org Subject: Re: kernel configuration file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 May 2012 18:43:30 -0000 On Sun, 6 May 2012 13:23:08 -0500 (CDT), Robert Bonomi wrote: > > From owner-freebsd-questions@freebsd.org Sun May 6 08:36:52 2012 > > Date: Sun, 6 May 2012 09:34:12 -0400 > > From: Carmel > > To: FreeBSD > > Subject: Re: kernel configuration file > > > > On Sun, 6 May 2012 08:08:31 -0500 (CDT) > > Robert Bonomi articulated: > > > > > >If you use the "traditional" kernel-huild 'Configure/make depend/make' > > >sequence, to rebuild the kernel -only-, its a matter of one minute or > > >so on a _slow_ (486-class) machine. > > > > > >you'll either get a Configure error, a linker error, or it 'just > > >works'. > > > > OK, now you lost me. I use the following basic sequence: > > > > make buildworld > > make buildkernel KERNCONF=CARMEL > > make installkernel KERNCONF=CARMEL > > make installworld > > > > I am sorry, but I am not fully comprehending what commands you want me > > to enter. > > That's the 'modern' way. The /usr/src/Makefile contains a comment header which explains the purpose of the "make" targets the current way supports. One should read it before starting, because it's quite informative on _that_ way of doing things (e. g. "make kernel" = "make buildkernel installkernel"). > Note: "make buildkernel" forcibly rebuilds everything, *EVERY* time. > Including *every* loadable module, whether or not you actually use it. > Which can be *really* painful on slow hardware (like 20+ *hours*, on a > 486-class machine). Maybe it's worth mentioning /etc/src.conf and /etc/make.conf and the "man src.conf" manpage. That is a comfortable means to avoid building (and therefore also installing) modules one does not need. The approach "to configure all and _only_ the stuff I need in a custom kernel" can be followed this way, and it will even work with the current "make " way. Have no WLAN? So why bother building it? No ISDN? Omit it! For minor kernel changes (e. g. if you want to try some compile-time settings), this approach is really handy as it minimizes the time required. This consideration should _boost_ build+install times on current plentycore multiprocessors with tons of RAM! :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...