From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22802 invoked by alias); 12 Sep 2007 07:01:07 -0000 Received: (qmail 22779 invoked by uid 22791); 12 Sep 2007 07:01:06 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 12 Sep 2007 07:00:59 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1IVMDW-00022l-00; Wed, 12 Sep 2007 09:00:54 +0200 Date: Wed, 12 Sep 2007 07:01:00 -0000 From: Andrew Lunn To: Mike Arthur Cc: ecos-discuss@ecos.sourceware.org Message-ID: <20070912070054.GQ3557@lunn.ch> Mail-Followup-To: Mike Arthur , ecos-discuss@ecos.sourceware.org References: <2a3305fe0709111554x64de173ej3b684623610db101@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2a3305fe0709111554x64de173ej3b684623610db101@mail.gmail.com> User-Agent: Mutt/1.5.16 (2007-06-11) 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: Re: [ECOS] How to modify CFLAGS within an ECM file? X-SW-Source: 2007-09/txt/msg00064.txt.bz2 On Tue, Sep 11, 2007 at 05:54:33PM -0500, Mike Arthur wrote: > Is there a way to adjust CFLAGS within an ECM file? I want to be able > to adjust the optimization levels of configurations, without changing > the rest of the CFLAGS when using ecosconfig. I don't want to have to > hand edit the .ecc file. > > This is an example of what I want to do: > $ ecosconfig new pc_rltk8139 > $ ecosconfig import file_that_modifies_optimization_to_O0.ecm > $ ecosconfig tree > $ make > > Now the 'pc_rltk8139' target would be built with -O0 optimization. I > don't know what the contents of "file_that_modifies_optimization.ecm" > would be. > > Any suggestions? Take a look at: http://ecos.sourceware.org/docs-latest/cdl-guide/language.values.html In particular the first example after the table of operators, the example in the section Functions, and the documentation for is_substr() Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss