From owner-freebsd-questions@FreeBSD.ORG Sun May 18 11:13:08 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D9651065676 for ; Sun, 18 May 2008 11:13:08 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr16.xs4all.nl (smtp-vbr16.xs4all.nl [194.109.24.36]) by mx1.freebsd.org (Postfix) with ESMTP id 81E418FC22 for ; Sun, 18 May 2008 11:13:07 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr16.xs4all.nl (8.13.8/8.13.8) with ESMTP id m4I81ZFa069359; Sun, 18 May 2008 10:01:35 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id B6E5BBAA8; Sun, 18 May 2008 10:01:34 +0200 (CEST) Date: Sun, 18 May 2008 10:01:34 +0200 From: Roland Smith To: Luke Dean Message-ID: <20080518080134.GA1212@slackbox.xs4all.nl> Mail-Followup-To: Luke Dean , freebsd-questions@freebsd.org References: <20080517172701.F93636@border.lukas.is-a-geek.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9amGYk9869ThD9tj" Content-Disposition: inline In-Reply-To: <20080517172701.F93636@border.lukas.is-a-geek.org> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: Stop building all those kernel modules X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 May 2008 11:13:08 -0000 --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--