tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: USB_DEBUG mess



On Jan 5, 2013, at 12:08 PM, Iain Hibbert wrote:

> On Sat, 5 Jan 2013, Christos Zoulas wrote:
> 
>> USB_DEBUG is defopt'ed and it is used as a global knob in usb.h:
> [...]
>> This is done for drivers which don't include "opt_usb.h" so they will not
>> recognize when USB_DEBUG changes.
> 
> Since when has this defopt been the case?
> 
> Ok, answering my own question, it was 18 months ago by Matt.. but why was
> this added?
> 
>  
> http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/usb/files.usb?rev=1.106&content-type=text/x-cvsweb-markup
> 
> Normally, the XXX_DEBUG options are not specified in any files.* files,
> meaning that as they are unknown options, they will translate into a
> CPPFLAG of -DXXX_DEBUG in the kernel Makefile

which is means if you do the define, your sources don't properly get rebuilt. 
That's why it was made a config option.


Home | Main Index | Thread Index | Old Index