From owner-freebsd-questions@FreeBSD.ORG Thu Nov 24 15:01:14 2011 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 CCEB11065743 for ; Thu, 24 Nov 2011 15:01:14 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 8934F8FC0C for ; Thu, 24 Nov 2011 15:01:14 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RTanY-0008Ci-S4 for freebsd-questions@freebsd.org; Thu, 24 Nov 2011 16:01:12 +0100 Received: from pool-173-79-99-96.washdc.fios.verizon.net ([173.79.99.96]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Nov 2011 16:01:12 +0100 Received: from nightrecon by pool-173-79-99-96.washdc.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Nov 2011 16:01:12 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Date: Thu, 24 Nov 2011 10:00:59 -0500 Lines: 30 Message-ID: References: <201111241439.HAA07258@lariat.net> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: pool-173-79-99-96.washdc.fios.verizon.net Subject: Re: Quick build of stripped-down kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: nightrecon@hotmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Nov 2011 15:01:14 -0000 Brett Glass wrote: > Everyone: > > Happy Thanksgiving! This week, I've been building FreeBSD 9.0-RC2 > kernels for various machines, and on some of the older and slower > ones it's been taking quite a long time. One of the reasons for > this is that even if you strip 98% of the drivers out of the > kernel, they are all still built as loadable modules. The machines > in question will NEVER use those modules, so it's a waste of time > and disk space. > > How hard would it be to create a build target for "make" that would > avoid building the loadable modules and just leave them out of the > directory where the new kernel is placed after installation? I am > not intimately familiar with the cascade of makefiles that does the > build.... I could probably figure out what to tweak, but if someone > who is expert in this can help it would be appreciated. It would > save me countless hours. > Unless the man pages are out of date and inaccurate this used to be done with make.conf and NO_MODULES. I thought this had been moved into src.conf, but I don't see it in the man page for src.conf. man make.conf for details, as it is also possible to control which modules you want or do not want built as well. -Mike