Subject: Re: Merging usbdevs files from others BSD
To: None <tech-kern@NetBSD.org>
From: Arnaud Lacombe <lacombar@gmail.com>
List: tech-kern
Date: 07/06/2007 01:14:23
On Wed, Jul 04, 2007 at 12:17:33PM +0200, Bernd Ernesti wrote:
> 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.
>
On the vendor point of view, the difference between long and short names is not 
really significative. But on the product point of view, out product's 
description are often longer.

After a build-test, I get this:

   text    data     bss     dec     hex filename
9089612  420996  365084 9875692  96b0ec nbsd-notverb.new
9089644  420996  365084 9875724  96b10c nbsd-notverb.old
9137009  420996  365084 9923089  976a11 nbsd-verb.new
9126611  420996  365084 9912691  974173 nbsd-verb.old

For USBVERBOSE kernel, we have a 10k size increase for approximatively 500 new 
entries (150 vendors and 350 products). This give 20 bytes for each new entry,
I find this reasonable.

The usbdevs file used for this build can be found here:

http://www.netbsd.org/~alc/usbdevs/usbdevs

You'll also need this patch to match the few changes made to the names :
http://www.netbsd.org/~alc/usbdevs/usbdevs-changes.diff

 - Arnaud