Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jan 2012 07:45:28 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-arch@freebsd.org
Cc:        Adrian Chadd <adrian@freebsd.org>
Subject:   Re: Request for help: how do teach module building about kernel options?
Message-ID:  <201201040745.28306.jhb@freebsd.org>
In-Reply-To: <EBBFC2E5-034E-42EA-9D95-69454832470D@bsdimp.com>
References:  <CAJ-Vmomk4JTnZ0avRqdte9Th5F7G7x9eWTcwcd%2BT4HrcE0Mgxw@mail.gmail.com> <CAJ-VmonfMnMMmK=zzmaE=u8uRT_yxK06WP4%2BcVzGfBdSaXAtqQ@mail.gmail.com> <EBBFC2E5-034E-42EA-9D95-69454832470D@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <imp@bsdimp.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201040745.28306.jhb>