From owner-freebsd-questions@FreeBSD.ORG Thu Nov 24 17:39:58 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 7C1B9106574F for ; Thu, 24 Nov 2011 17:39:58 +0000 (UTC) (envelope-from terrence@mediamonks.net) Received: from mail.mediamonks.net (mail.mediamonks.net [217.195.117.200]) by mx1.freebsd.org (Postfix) with ESMTP id 0FBE08FC1E for ; Thu, 24 Nov 2011 17:39:57 +0000 (UTC) X-CGP-Sophos: Scanned and found clean X-Abuse-Info: Send abuse reports about this email to abuse@mediamonks.net Received: from [145.99.104.70] (account terrence@mediamonks.com) by mail.mediamonks.net (CommuniGate Pro IMAP 5.4.2) with XMIT id 8113615; Thu, 24 Nov 2011 18:39:56 +0100 Date: Thu, 24 Nov 2011 18:39:54 +0100 Organization: MediaMonks B.V. Message-Id: <2a449d3a0a37ab479c97962b436bb95c@mediamonks.net> In-Reply-To: <201111241439.HAA07258@lariat.net> MIME-Version: 1.0 Thread-Topic: Quick build of stripped-down kernel Priority: Normal Importance: normal X-MSMail-Priority: normal X-Priority: 3 Sensitivity: Normal Thread-Index: Acyq0BMTZGpb1u2EQ0WN52oG/R/erQ== From: "Terrence Koeman" To: "freebsd-questions@FreeBSD.org" X-Mailer: CommuniGate Pro MAPI Connector 1.52.54.6/1.54.0.6 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailman-Approved-At: Thu, 24 Nov 2011 18:00:38 +0000 Cc: Brett Glass Subject: RE: Quick build of stripped-down kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Nov 2011 17:39:58 -0000 > -----Original Message----- > From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd- > questions@freebsd.org] On Behalf Of Brett Glass > Sent: Thursday, November 24, 2011 15:39 > > 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. > Add makeoptions NO_MODULES=3Dyes to your KERNCONF. -- Regards, T. Koeman, MTh/BSc/BPsy; Technical Monk MediaMonks B.V. (www.mediamonks.com) Please quote relevant replies in correspondence.