From owner-freebsd-hackers Fri Nov 15 10:55:35 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B821437B401 for ; Fri, 15 Nov 2002 10:55:33 -0800 (PST) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7ABC443E42 for ; Fri, 15 Nov 2002 10:55:30 -0800 (PST) (envelope-from ru@whale.sunbay.crimea.ua) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) by whale.sunbay.crimea.ua (8.12.6/8.12.6/Sunbay) with ESMTP id gAFItB5V091871 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Fri, 15 Nov 2002 20:55:11 +0200 (EET) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.6/8.12.6/Submit) id gAFItAdY091866; Fri, 15 Nov 2002 20:55:10 +0200 (EET) Date: Fri, 15 Nov 2002 20:55:10 +0200 From: Ruslan Ermilov To: Steve Tremblett Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: adding options/devices/etc to kernel Message-ID: <20021115185510.GB90613@sunbay.com> References: <20021115134613.M14852@sjt-u10.cisco.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qcHopEYAB45HaUaB" Content-Disposition: inline In-Reply-To: <20021115134613.M14852@sjt-u10.cisco.com> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --qcHopEYAB45HaUaB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 15, 2002 at 01:46:13PM -0500, Steve Tremblett wrote: > I'm playing with netgraph specifically, but in general I'm curious and > can't seem to find a doc in the manual that answers my question in > reasonable detail. >=20 > I'm trying to find the specific path for how "options NETGRAPH_FOO" in > the kernel config file translates to ng_foo.o being linked in the > kernel. >=20 > As far as I can tell, I have to put the following things in place: >=20 > sys/conf/options: > NETGRAPH_FOO opt_netgraph.h >=20 > sys/conf/files: > netgraph/ng_foo.c optional netgraph_foo >=20 > Are there any other steps that I'm missing? >=20 > config(8) and /usr/share/examples/drivers/*.sh suggest that I should be > using sys/i386/conf/files.NETGRAPH_FOO instead of sys/conf/files, but > what about sys/conf/options? There is no mention of > sys/i386/conf/options.NETGRAPH_FOO. >=20 The options file is used solely to translate config(8) file options into #define's in various include files. See also /usr/share/doc/smm/02.config. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --qcHopEYAB45HaUaB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE91UMOUkv4P6juNwoRAmXJAJ9BPXFyHT15aK0CP/LpUZJZz7yUWACfSMRL +p/TR5qXmEOK5umNIKBXVX4= =lNJv -----END PGP SIGNATURE----- --qcHopEYAB45HaUaB-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message