From owner-freebsd-usb@FreeBSD.ORG Fri Jul 6 06:56:47 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3ACCD16A421 for ; Fri, 6 Jul 2007 06:56:47 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id D0F5B13C483 for ; Fri, 6 Jul 2007 06:56:46 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [194.248.135.20] (account mc467741@c2i.net HELO laptop.lan) by mailfe02.swip.net (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 540902324 for freebsd-usb@freebsd.org; Fri, 06 Jul 2007 08:56:45 +0200 Content-Disposition: inline From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 6 Jul 2007 08:56:47 +0200 User-Agent: KMail/1.9.5 MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200707060856.47597.hselasky@c2i.net> Subject: Fwd: Re: Merging usbdevs files from others BSD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jul 2007 06:56:47 -0000 Hi, I'm forwarding this. --HPS ---------- Forwarded Message ---------- Subject: Re: Merging usbdevs files from others BSD Date: Friday 06 July 2007 03:14 From: Arnaud Lacombe To: tech-kern@netbsd.org 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 -------------------------------------------------------