From owner-freebsd-arch@FreeBSD.ORG Wed Jan 4 12:54:52 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 53E7E106567C; Wed, 4 Jan 2012 12:54:52 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 28CF58FC08; Wed, 4 Jan 2012 12:54:52 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) by cyrus.watson.org (Postfix) with ESMTPSA id BB5A946B2A; Wed, 4 Jan 2012 07:54:51 -0500 (EST) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 4D738B924; Wed, 4 Jan 2012 07:54:51 -0500 (EST) From: John Baldwin To: freebsd-arch@freebsd.org Date: Wed, 4 Jan 2012 07:45:28 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p8; KDE/4.5.5; amd64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201201040745.28306.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Wed, 04 Jan 2012 07:54:51 -0500 (EST) Cc: Adrian Chadd Subject: Re: Request for help: how do teach module building about kernel options? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jan 2012 12:54:52 -0000 On Tuesday, January 03, 2012 6:31:37 pm Warner Losh wrote: > > On Jan 3, 2012, at 12:06 PM, Adrian Chadd wrote: > > > On 3 January 2012 10:56, Warner Losh wrote: > > > >>> So how about we do up say, the KERNOPTS field first, which would be a > >>> big win. Then KERNDEVICES too, if that's possible? > >> > >> I'd only planned on doing KERNOPTS :) > > > > KERNOPTS would be fine for now. That at least gets me out of my > > initial issues with wlan/ath building and the fun in handling options. > > Please find enclosed a proposed patch. This will not build, of course, since there's no file in the tree mesh_baby.c, so if you have IEEE80211_SUPPORT_MESH defined, it won't work. It keys off the actual define. > > It even works with devices (which define DEV_xxx), but only if you have it in the options file like isa (eg, you need to tell config to generate it). > > Comments? I like this, nice and simple. -- John Baldwin