From owner-freebsd-questions@FreeBSD.ORG Sun Jan 2 21:45:22 2011 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 669C71065670 for ; Sun, 2 Jan 2011 21:45:22 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from paka.cyberleo.net (paka.cyberleo.net [66.219.31.21]) by mx1.freebsd.org (Postfix) with ESMTP id 41BE58FC14 for ; Sun, 2 Jan 2011 21:45:22 +0000 (UTC) Received: from [172.16.44.4] (den.cyberleo.net [66.253.36.39]) by paka.cyberleo.net (Postfix) with ESMTPSA id 38937295FC; Sun, 2 Jan 2011 16:45:21 -0500 (EST) Message-ID: <4D20F1F0.8050806@cyberleo.net> Date: Sun, 02 Jan 2011 15:45:20 -0600 From: CyberLeo Kitsana User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101218 Lightning/1.0b3pre Thunderbird/3.1.7 MIME-Version: 1.0 To: perryh@pluto.rain.com References: <4d20405b.peoSjXlhfff4u/n7%perryh@pluto.rain.com> In-Reply-To: <4d20405b.peoSjXlhfff4u/n7%perryh@pluto.rain.com> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: kernel config =?> kernel code 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, 02 Jan 2011 21:45:22 -0000 On 01/02/2011 03:07 AM, perryh@pluto.rain.com wrote: > This feels like a really dumb (as in, the answer should be obvious) > question, but so far it has eluded me: Given an option name in the > kernel configuration file, how -- exactly -- does the directive to > include or exclude that option get translated into particular code > (source lines, .o files, symbols, etc.) that are thereby included in > or excluded from the kernel? This is of interest to me as well, as I have been trying for a while to create something to avoid building or installing kmods whose functionality is already built into the kernel proper. The furthest I got in my investigation was some parsing of sys/conf/files[1]. [1] http://wiki.cyberleo.net/wiki/KnowledgeBase/FreeBSD/srcsysmod_kmod.sh -- Fuzzy love, -CyberLeo Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net Furry Peace! - http://wwww.fur.com/peace/