Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Nov 2011 18:39:54 +0100
From:      "Terrence Koeman" <terrence@mediamonks.net>
To:        "freebsd-questions@FreeBSD.org" <freebsd-questions@FreeBSD.org>
Cc:        Brett Glass <brett@lariat.net>
Subject:   RE: Quick build of stripped-down kernel
Message-ID:  <2a449d3a0a37ab479c97962b436bb95c@mediamonks.net>
In-Reply-To: <201111241439.HAA07258@lariat.net>

next in thread | previous in thread | raw e-mail | index | archive | help
> -----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.






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2a449d3a0a37ab479c97962b436bb95c>