This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Importing .ecm files automatically


Sorry I did not explain my solution very well, when I said patch files I
meant using the import command like you suggested in your second option -
using the "ecosconfig import foo.ecm" command. Your first idea does sound
like a better idea with using templates.  

-----Original Message-----
From: Jonathan Larmour [mailto:jifl@eCosCentric.com]
Sent: Friday 13 June 2003 05:03 AM
To: Retallack, Mark (Poole)
Cc: 'goran pantar'; 'ecos-discuss@sources.redhat.com'
Subject: Re: [ECOS] Importing .ecm files automatically


Retallack, Mark (Poole) wrote:
>> I'm looking for a way to import .ecm file automatically after the
template
>> is loaded. Is that at all possible.
>> (I'm using eCosConfigTool on Windows)
>> 
> I needed to do the same sort of thing for our build system. We needed to
> create 3 different versions of Redboot and the kernel and did not want
lots
> of separate ecc files to have to keep up to date with each other. 
> 
> I did try using the tcl include command inside the ecc file, however
things
> went very strange. I also found that save will save the combined result
and
> not just the original one.
> 
> The final solution was to use the command line tool ecosconfig and have
one
> ecc file that was the master and patch files containing the different
> settings.

Ouch. That sounds painful, and unfortunately probably unnecessary.

Firstly, you can cheat and create a new template in the repository that 
merges the original template and the .ecm file together. Then you can keep 
with the windows config tool.

Or secondly, you can just use ecosconfig on the command line with 
"ecosconfig import foo.ecm" - you don't need patch files.

I'd go for the first option if your repository is writable by you which 
I'm sure it is for most people.

Jifl
-- 
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine


Siemens Traffic Controls is a division of Siemens plc. Registered No.
727817, England. 
Registered office: Siemens House, Oldbury, Bracknell, Berkshire, RG12 8FZ. 

This communication contains information which is confidential and 
may also be privileged. It is for the exclusive use of the addressee. 
If you are not the addressee please note that any distribution, 
reproduction, copying, publication or use of this communication 
or the information in it is prohibited.  If you have received this 
communication in error, please contact us immediately and also 
delete the communication from your computer. 



-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]