Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Dec 2001 15:19:15 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Jon Larssen <jonlarssen@hotmail.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: NEWBIE: kernel building and modules
Message-ID:  <20011227211915.GI55023@dan.emsphone.com>
In-Reply-To: <F100ctX9S2r45VlI4JK0000702f@hotmail.com>
References:  <F100ctX9S2r45VlI4JK0000702f@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Dec 27), Jon Larssen said:
> this is a newbie question, but I practically made the move to FreeBSD
> from Linux a couple of weeks ago. The questions are these:
> 
> How do I specify what I want in modules and what goes in the kernel?
> 
> From the little I have seen, it seems that whatever I put in my
> kernel config file prior to buildkernel will be linked to the kernel.
> Everything else go as modules. Is this right?

Actually, everything is always compiled as a module, even if it's also
statically compiled.

To not build any modules, put this in your kernel config file:

makeoptions     NO_MODULES="yes"

To only build certain modules instead of everything, add

makeoptions	MODULES_OVERRIDE="fxp bktr smbfs"

.. etc.  I'm not sure where this is documented :)

-- 
	Dan Nelson
	dnelson@allantgroup.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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