From owner-freebsd-hackers Fri Nov 15 10:46:16 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 13A3337B404 for ; Fri, 15 Nov 2002 10:46:15 -0800 (PST) Received: from cisco.com (sword.cisco.com [161.44.208.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5352C43E6E for ; Fri, 15 Nov 2002 10:46:14 -0800 (PST) (envelope-from sjt@cisco.com) Received: from sjt-u10.cisco.com (sjt-u10.cisco.com [10.85.30.63]) by cisco.com (8.8.5-Cisco.1/8.8.8) with ESMTP id NAA09003 for ; Fri, 15 Nov 2002 13:46:13 -0500 (EST) Received: (sjt@localhost) by sjt-u10.cisco.com (8.8.5-Cisco.1/CISCO.WS.1.2) id NAA04748 for freebsd-hackers@freebsd.org; Fri, 15 Nov 2002 13:46:13 -0500 (EST) Date: Fri, 15 Nov 2002 13:46:13 -0500 From: Steve Tremblett To: freebsd-hackers@freebsd.org Subject: adding options/devices/etc to kernel Message-ID: <20021115134613.M14852@sjt-u10.cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i 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 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. 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. As far as I can tell, I have to put the following things in place: sys/conf/options: NETGRAPH_FOO opt_netgraph.h sys/conf/files: netgraph/ng_foo.c optional netgraph_foo Are there any other steps that I'm missing? 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. Thanks all -- Steve Tremblett To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message