This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Importing .ecm files automatically
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: "Retallack, Mark (Poole)" <mark dot retallack at siemens dot com>
- Cc: 'goran pantar' <goran dot pantar at xylon dot hr>,"'ecos-discuss at sources dot redhat dot com'" <ecos-discuss at sources dot redhat dot com>
- Date: Fri, 13 Jun 2003 05:02:35 +0100
- Subject: Re: [ECOS] Importing .ecm files automatically
- References: <F5AFBF4F39DBDD488C5B9B41D48145CC1F9341@plestcl0112.stcl.siemens.co.uk>
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
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss