kern/96346: [PATCH] disable build of modules that are already in kernel image

Robert Millan rmh at
Wed Apr 26 10:40:11 UTC 2006

The following reply was made to PR kern/96346; it has been noted by GNATS.

From: Robert Millan <rmh at>
To: "Andrey V. Elsukov" <bu7cher at>
Cc: FreeBSD-gnats-submit at
Subject: Re: kern/96346: [PATCH] disable build of modules that are already in	kernel image
Date: Wed, 26 Apr 2006 12:35:17 +0200

 On Wed, Apr 26, 2006 at 12:08:23PM +0400, Andrey V. Elsukov wrote:
 > Robert Millan wrote:
 > >I don't understand.  Does -DNO_MODULES disable all modules, or just those 
 > >that
 > >are already built in kernel?
 > No, NO_MODULES is a make option, that can made a kernel build much 
 > faster. And command `make buildkernel reinstallkernel -DNO_MODULES 
 > KERNCONF=SOMEKERNEL' can be used for the fast kernel reinstallation.
 > You can remove some options from kernel and rebuild and reinstall it 
 > without building modules. With your patch you will lost some modules in 
 > this case.
 > But i think that your option WITHOUT_MODULES can be usable for build of 
 > some smallest systems based on FreeBSD.
 > >And if it disables only those in kernel, why isn't this enabled by default?
 > It disables all modules.
 My concern is with disk space, rather than build time.  For example, when
 shipping modules in an mfsroot.gz, this is a big problem.  Even bigger when
 this is embedded system or old hardware with not much RAM.
 In my setup (which is very close to GENERIC), we could save ~4 MB by doing this.
 Robert Millan

More information about the freebsd-bugs mailing list