Date: Sun, 18 May 2008 10:01:34 +0200 From: Roland Smith <rsmith@xs4all.nl> To: Luke Dean <LukeD@pobox.com> Cc: freebsd-questions@freebsd.org Subject: Re: Stop building all those kernel modules Message-ID: <20080518080134.GA1212@slackbox.xs4all.nl> In-Reply-To: <20080517172701.F93636@border.lukas.is-a-geek.org> References: <20080517172701.F93636@border.lukas.is-a-geek.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Sat, May 17, 2008 at 05:32:50PM -0700, Luke Dean wrote: > > I'm trying to use nanobsd to build a small kernel for an embedded system on > FreeBSD 7. > > In previous versions, I could modify GENERIC by just commenting out all the > devices and options that I wasn't interested in, and buildkernel > KERNCONF=myconf would happily ignore all the things I wasn't interested in. > > This no longer works. Now everything gets built, even things that are > broken/incompatible with other options I've chosen. > > I've tried setting NO_MODULES=YES, but the modules were still built. > I see documentation for WITHOUT_MODULES, but it wants me to list every > module I don't want to build? Come on! There must be a better way... Put the following in you kernel config: makeoptions MODULES_OVERRIDE="" This will prevent the building of all modules. So you will only get the devices built into the kernel. If you do wnat something to be built as a module, put it between the quotation marks, e.g. MODULES_OVERRIDE="wlan ral". Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkgv4l4ACgkQEnfvsMMhpyU4hQCgnZOZFgwL45vquxzDLNTysVFu BnoAniOQeoHZ5lcBjLpQo3CttZgTas5p =hMe+ -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080518080134.GA1212>
