From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18535 invoked by alias); 31 May 2007 16:11:43 -0000 Received: (qmail 18422 invoked by uid 22791); 31 May 2007 16:11:42 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 31 May 2007 16:11:38 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HtnF5-0004jt-Og for ecos-discuss@sources.redhat.com; Thu, 31 May 2007 18:11:16 +0200 Received: from c-76-17-159-202.hsd1.mn.comcast.net ([76.17.159.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 May 2007 18:11:15 +0200 Received: from grante by c-76-17-159-202.hsd1.mn.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 May 2007 18:11:15 +0200 To: ecos-discuss@sources.redhat.com From: Grant Edwards Date: Thu, 31 May 2007 16:41:00 -0000 Message-ID: References: <20070530211229.GI32489@lunn.ch> <20070531151854.GM32489@lunn.ch> User-Agent: slrn/0.9.8.1 (Linux) X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Re: eCos configuration question (was Re: [ECOS] General Q ...) X-SW-Source: 2007-05/txt/msg00213.txt.bz2 On 2007-05-31, Andrew Lunn wrote: > On Thu, May 31, 2007 at 09:50:50AM -0500, John Mills wrote: >> Leaving aside my responses to Andrew cut in below: >> >> 1. How should I set or clear this switch in my *.ecc files? I >> don't recognize the entry in 'configtool'. Should I edit >> the *.ecc and regenerate the tree? Edit the affected >> 'hal.h'? > > You should never need to edit a .h file. I personally never > use the gui tool. I don't think any of the "pros" do. AFAICT, it's just eye-candy to lessen the initial culture shock for Visual-C programmers. ;) > I find it much easier just to edit the ecos.ecc file and use > ecosconfig That's what I used to do, but I had a hard time keeping track of what I had changed from the defaults. Now I find it easiest to write a shell script that creates a source tree. It seems like a bit of a hassle at first, but you're always sure what you've got (all your tweaks are in one small file) and you're always sure you can repeably generate the same source tree. ________________________________________________________________________ #!/bin/bash set -x ecosconfig new foobar net ecosconfig remove CYGPKG_POSIX ecosconfig add CYGPKG_IO_I2C ecosconfig add CYGPKG_FOOBAR_DM2_I2CEEPROM cat >.tmp$$.cdl <