From owner-freebsd-hackers Fri Mar 21 8:39:35 2003 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 4F1D037B401; Fri, 21 Mar 2003 08:39:34 -0800 (PST) Received: from mailhub.fokus.fraunhofer.de (mailhub.fokus.fraunhofer.de [193.174.154.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8204B43F75; Fri, 21 Mar 2003 08:39:30 -0800 (PST) (envelope-from brandt@fokus.fraunhofer.de) Received: from beagle (beagle [193.175.132.100]) by mailhub.fokus.fraunhofer.de (8.11.6/8.11.6) with ESMTP id h2LGdLH13082; Fri, 21 Mar 2003 17:39:21 +0100 (MET) Date: Fri, 21 Mar 2003 17:39:20 +0100 (CET) From: Harti Brandt To: The Anarcat Cc: Yar Tikhiy , "Nikolay Y. Orlyuk" , hackers@FreeBSD.ORG Subject: Re: Build options for kernel modules In-Reply-To: <20030321162501.GC1174@lenny.anarcat.ath.cx> Message-ID: <20030321173702.Q610@beagle.fokus.fraunhofer.de> References: <20030321153217.GA53518@comp.chem.msu.su> <20030321153907.GQ76182@asu.ntu-kpi.kiev.ua> <20030321161658.GA56375@comp.chem.msu.su> <20030321162501.GC1174@lenny.anarcat.ath.cx> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Fri, 21 Mar 2003, The Anarcat wrote: TA>On Fri Mar 21, 2003 at 07:16:58PM +0300, Yar Tikhiy wrote: TA>> On Fri, Mar 21, 2003 at 05:39:07PM +0200, Nikolay Y. Orlyuk wrote: TA>> > On Fri, Mar 21, 2003 at 06:32:17PM +0300, Yar Tikhiy wrote: TA>> > > Hi there, TA>> > > TA>> > > Excuse my stupid question, but I seem to have no time to do the TA>> > > investigation by myself right now so I'd be glad to receive a brief TA>> > > answer from someone who has the information. TA>> > > TA>> > > As far as I can see, kernel modules should be built along with the TA>> > > kernel for the only reason of keeping their mutual interfaces in TA>> > > sync, has a source file defining such an interface changed. Is TA>> > > there currently no way to go further and affect a kernel module's TA>> > > built-in features with kernel config file options, besides modifying TA>> > > makefiles in /sys/modules? TA>> > I think this isn't so. I have been already tried to compile some modules TA>> > without compiling kernel and this trye has successful result, but without TA>> > change options. TA>> > I think modules must be build with same or less imports and same or more export to be correct TA>> > for loading. TA>> TA>> Yeah, it's all right to compile modules w/o the kernel, but that's TA>> not exactly what I was asking about. My question was whether "option TA>> FOO" lines from a kernel configuration file could influence modules. TA> TA>I'm pretty sure they do. A great example is IPFIREWALL_* options: if TA>they don't influence the module, I think we have a problem. ;) How should they? The Makefiles for modules usually create the option files that normally are create by config options themself and set the options to 1. harti -- harti brandt, http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.fraunhofer.de, harti@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message