Date: Fri, 28 Nov 2003 22:52:54 +0000 (GMT) From: =?iso-8859-1?q?Florin=20Betivoiu?= <flow_of_rhin@yahoo.com> To: Dan Nelson <dnelson@allantgroup.com> Cc: freebsd-questions@freebsd.org Subject: Re: unneeded modules Message-ID: <20031128225254.88914.qmail@web60101.mail.yahoo.com> In-Reply-To: <20031128190532.GA65710@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--- Dan Nelson <dnelson@allantgroup.com> wrote: > In the last episode (Nov 28), Florin Betivoiu said: > > I would like to know if there is any way to not compile in the kernel > > drivers I don't need. For example kldstat -v shows that lots of > > miibus modules are loaded when i just need pnaphy, or lots of agp > > modules when I just need intel. Please excuse my poor english, as I > > am not a native speaker. Thanks in advance for any suggestions, > > pointers. > > In your kernel config file, you can use MODULES_OVERRIDE to build only > the modules you need. Modules are defined in the /sys/modules > directory, though, and it looks like there is a single "mii" module > that includes support for all chipsets. Same for the agp device, so > you have to build all of them or none. The sound driver is a bit more > modular, and you can choose to build only the driver for a single > chipset. See /sys/confi/NOTES for a description of the syntax for > MODULES_OVERRIDE. > > -- > Dan Nelson > dnelson@allantgroup.com Ok. With this config file: http://tinfed.dap.ro/PONY I compiled a kernel that has 2.1MB in size. Probably I shouldn't compare it with others, but is it not too big? ________________________________________________________________________ Download Yahoo! Messenger now for a chance to win Live At Knebworth DVDs http://www.yahoo.co.uk/robbiewilliams
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031128225254.88914.qmail>