From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18531 invoked by alias); 31 May 2009 15:46:02 -0000 Received: (qmail 18520 invoked by uid 22791); 31 May 2009 15:46:01 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_93 X-Spam-Check-By: sourceware.org Received: from mtaout02-winn.ispmail.ntl.com (HELO mtaout02-winn.ispmail.ntl.com) (81.103.221.48) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 31 May 2009 15:45:55 +0000 Received: from aamtaout01-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20090531154551.YVXA6611.mtaout02-winn.ispmail.ntl.com@aamtaout01-winn.ispmail.ntl.com>; Sun, 31 May 2009 16:45:51 +0100 Received: from cog.dallaway.org.uk ([86.9.207.237]) by aamtaout01-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20090531154551.BPGK13254.aamtaout01-winn.ispmail.ntl.com@cog.dallaway.org.uk>; Sun, 31 May 2009 16:45:51 +0100 Received: from cog.dallaway.org.uk (cog.dallaway.org.uk [127.0.0.1]) by cog.dallaway.org.uk (8.13.8/8.13.8) with ESMTP id n4VFjnFt004735; Sun, 31 May 2009 16:45:49 +0100 Message-ID: <4A22A62D.7060101@dallaway.org.uk> Date: Sun, 31 May 2009 15:46:00 -0000 From: John Dallaway User-Agent: Thunderbird 2.0.0.21 (X11/20090327) MIME-Version: 1.0 To: Chris Holgate CC: ecos-devel@sourceware.org Subject: Re: STM32 USB support References: <4A11CAAA.8040900@intefo.ch> <4A11D861.8090206@zynaptic.com> <4A11E5DF.2000403@intefo.ch> <4A129C34.9090606@zynaptic.com> <4A12B508.2050908@dallaway.org.uk> <4A14749E.4040602@zynaptic.com> <4A150245.3020105@dallaway.org.uk> <4A229BCA.3020906@zynaptic.com> In-Reply-To: <4A229BCA.3020906@zynaptic.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2009-05/txt/msg00079.txt.bz2 Hi Chris Chris Holgate wrote: > John Dallaway wrote: > >> If you provide a new target record in pkgadd.db which matches the name >> of an existing target record in ecos.db, the packages listed in the new >> target record will be appended to the existing target record by >> ecosadmin.tcl. So you could do something like this in your pkgadd.db: >> >> target stm3210e_eval { >> packages { >> CYGPKG_IO_USB >> CYGPKG_IO_USB_SLAVE >> CYGPKG_DEVS_USB_CORTEXM_STM32 >> } >> } > > I tried this and while it works for adding in a new package, I found > that it has the unfortunate side effect of causing the entire STM3210E > target to be removed when removing the USB package. Subsequently > re-adding the USB package then just adds in this truncated target > definition which results in ecos.db becoming unloadable. The following (undocumented) incantation: ./ecosadmin.tcl --keep_targets remove CYGPKG_DEVS_USB_CORTEXM_STM32 should allow you to remove the driver package without deleting the targets which use it. Perhaps this should become the default behaviour when removing packages so that people are less likely to remove target records inadvertently. Anyway, working with ecosadmin.tcl is certainly more elegant and more scalable than adding a new target just to accommodate a new driver. > The other > changes you suggested have now gone in and should allow the USB driver > to be added to the standard target in CVS. That's great. John Dallaway