Request for help: how do teach module building about kernel
options?
Adrian Chadd
adrian at freebsd.org
Wed Jan 4 00:12:24 UTC 2012
On 3 January 2012 15:31, Warner Losh <imp at bsdimp.com> wrote:
> 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 don't strictly need the SRCS line just yet - I can wrap it up in an
if: (not correct make fu, but you get the idea):
.if (KERNOPT_IEEE80211_SUPPORT_MESH == 1)
SRCS+= ieee80211_mesh.c
.endif
.if (KERNOPT_IEEE80211_SUPPORT_TDMA == 1)
SRCS+= ieee80211_tdma.c
.endif
What do you mean about DEV_xxx? Can you give me an example to look at
in the sys directory?
Adrian
More information about the freebsd-arch
mailing list