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
--9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 17, 2008 at 05:32:50PM -0700, Luke Dean wrote: >=20 > I'm trying to use nanobsd to build a small kernel for an embedded system = on=20 > FreeBSD 7. >=20 > In previous versions, I could modify GENERIC by just commenting out all t= he=20 > devices and options that I wasn't interested in, and buildkernel=20 > KERNCONF=3Dmyconf would happily ignore all the things I wasn't interested= in. >=20 > This no longer works. Now everything gets built, even things that are=20 > broken/incompatible with other options I've chosen. >=20 > I've tried setting NO_MODULES=3DYES, but the modules were still built. > I see documentation for WITHOUT_MODULES, but it wants me to list every=20 > 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=3D"" 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=3D"wlan r= al". Roland --=20 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) --9amGYk9869ThD9tj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkgv4l4ACgkQEnfvsMMhpyU4hQCgnZOZFgwL45vquxzDLNTysVFu BnoAniOQeoHZ5lcBjLpQo3CttZgTas5p =hMe+ -----END PGP SIGNATURE----- --9amGYk9869ThD9tj--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080518080134.GA1212>