Subject: Re: Merging usbdevs files from others BSD
To: Bernd Ernesti <netbsd@lists.veego.de>
From: Arnaud Lacombe <arnaud.lacombe.1@ulaval.ca>
List: tech-kern
Date: 07/04/2007 14:47:41
Bernd Ernesti wrote:
> On Tue, Jul 03, 2007 at 11:18:04PM +0000, Arnaud Lacombe wrote:
>> Hi,
>> 
>> Following a discussion on sources-changes@ about merging usbdevs 
>> file from the *BSD, I made a small ruby script to handle this more 
>> or less automatically. Warner Losh already told me he merged 
>> freebsd and netbsd one by hand, and tried to figure out where 
>> things did differ, but I think this script could still be usefull 
>> for the future (and for merging more than 2 two usbdevs files).
> 
> What does it give us if we don't support these devices? Yes, it would
>  be nice to have a name instead of a number, but then you have to
> deal with that we not really support them.
If we don't support the device, it will just be attached on ugen0
(for USB device).

> Then there is the different short vs. long names, which was allready 
> mentioned that this would increase the kernel size and the additional
>  new entries.
> 
I have planned tonight to do some compile test after having removed
duplicate vendor ID, I'll give you the exact overhead introduced by 
this. BTW, the strings are only printed if USBVERBOSE, so it does not 
affect INSTALL kernel.

> P.S. A shell script would be better since this could be used by the 
> base NetBSD system.
indeed, but from my point of view, using ruby just make it easyer to 1)
understand and 2) extends :-)

BTW, I've just discovered the existance of sys/dev/usb/usbdevices.config 
but it is never used in config files, couldn't we use it at least for 
GENERIC* kernel ?

  - Arnaud