[ECOS] CDL template example?

Gary Thomas gthomas@redhat.com
Tue Dec 11 15:36:00 GMT 2001

On Tue, 2001-12-11 at 15:34, Grant Edwards wrote:
> I'd like to have some way to pre-define "canned"
> configurations.  I get the impression that this is what a
> "template" is, but I can't find any documentation or examples.
> What I'd like is a way to pre-define a configuration that would
> be the same as the result of doing something like:
>    ecosconfig new foobar
>    ecosconfig remove this-package
>    ecosconfig add that-package theother-package
>    [edit ecos.ecc to set user-values for a handfull of package options]
> I currently use a shellscript to automate everything except the
> last bit where I set a bunch of user-values. The ecos.ecc file
> isn't very amenable to using awk/sed to set values, so I
> haven't figured out how to automate that.  Any ideas?

Use 'ecosconfig import <file>'.  While we generally use this to define
a complete configuration, the file can actually be any CDL .ecm
fragment.  For example, I use this fragment to force ROM startup mode:

------- startup.ROM -----------
    cdl_component CYG_HAL_STARTUP {
        user_value ROM

More information about the Ecos-discuss mailing list