Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Nov 2009 15:46:02 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-stable@freebsd.org
Cc:        Scot Hetzel <swhetzel@gmail.com>, Jeremy Chadwick <freebsd@jdc.parodius.com>
Subject:   Re: 8.0 kernel fails to build if some USB drivers are trimmed out; error in /sys/conf/files
Message-ID:  <200911301546.02312.jhb@freebsd.org>
In-Reply-To: <790a9fff0911261105n46e6b4e4g8c73e4a67af293c6@mail.gmail.com>
References:  <200911261743.KAA14021@lariat.net> <20091126184409.GA65045@icarus.home.lan> <790a9fff0911261105n46e6b4e4g8c73e4a67af293c6@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 26 November 2009 2:05:55 pm Scot Hetzel wrote:
> On 11/26/09, Jeremy Chadwick <freebsd@jdc.parodius.com> wrote:
> >  I don't think parenthesis are the core of the problem, given that there
> >  are many other devices in /sys/conf/files which utilise said method.
> >
> There are only 2 places in the /sys/conf/files which use this method,
> and both of them are for usb drivers:
> 
> # USB ethernet drivers
> #
> dev/usb/net/if_aue.c            optional aue
> dev/usb/net/if_axe.c            optional axe
> dev/usb/net/if_cdce.c           optional cdce
> dev/usb/net/if_cue.c            optional cue
> dev/usb/net/if_kue.c            optional kue
> dev/usb/net/if_rue.c            optional rue
> dev/usb/net/if_udav.c           optional udav
> dev/usb/net/usb_ethernet.c \
>         optional (aue | axe | cdce | cue | kue | rue | udav)
> :
> # USB serial and parallel port drivers
> #
> dev/usb/serial/u3g.c            optional u3g
> dev/usb/serial/uark.c           optional uark
> dev/usb/serial/ubsa.c           optional ubsa
> dev/usb/serial/ubser.c          optional ubser
> dev/usb/serial/uchcom.c         optional uchcom
> dev/usb/serial/ucycom.c         optional ucycom
> dev/usb/serial/ufoma.c          optional ufoma
> dev/usb/serial/uftdi.c          optional uftdi
> dev/usb/serial/ugensa.c         optional ugensa
> dev/usb/serial/uipaq.c          optional uipaq
> dev/usb/serial/ulpt.c           optional ulpt
> dev/usb/serial/umct.c           optional umct
> dev/usb/serial/umodem.c         optional umodem
> dev/usb/serial/umoscom.c        optional umoscom
> dev/usb/serial/uplcom.c         optional uplcom
> dev/usb/serial/uslcom.c         optional uslcom
> dev/usb/serial/uvisor.c         optional uvisor
> dev/usb/serial/uvscom.c         optional uvscom
> dev/usb/serial/usb_serial.c     optional ucom | \
>         (u3g | uark | ubsa | ubser | uchcom | ucycom | ufoma | uftdi |
> ugensa | uipaq | ulpt | umct | umodem | umoscom | uplcom | uslcom |
> uvisor | uvscom)
> 
> It would be interesting if this also breaks for compiling 'USB serial
> and parallel port drivers' into the kernel.

config doesn't handle parentheses here at all.  They should just be removed.  
config thinks the file is conditional on the '(aue', 'udav)', '(u3g', and 
'uvscom)' drivers.

-- 
John Baldwin



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