From owner-freebsd-questions Thu Dec 27 13:19:24 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 3172237B405 for ; Thu, 27 Dec 2001 13:19:18 -0800 (PST) Received: (from dan@localhost) by dan.emsphone.com (8.11.6/8.11.6) id fBRLJFl69965; Thu, 27 Dec 2001 15:19:15 -0600 (CST) (envelope-from dan) Date: Thu, 27 Dec 2001 15:19:15 -0600 From: Dan Nelson To: Jon Larssen Cc: freebsd-questions@FreeBSD.ORG Subject: Re: NEWBIE: kernel building and modules Message-ID: <20011227211915.GI55023@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.24i X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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