This is the mail archive of the ecos-patches@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: FWD: Re: [ECOS] Accessing config parameters in define_proc code


On Wed, Nov 06, 2002 at 09:14:02AM +0000, Bart Veer wrote:
> >>>>> "Jifl" == Jonathan Larmour <jifl@eCosCentric.com> writes:
> 
>     Jifl> Andrew Lunn wrote:
>     >> I finally got my head around enough of the libcdl concepts to make a
>     >> stab at implementing this. Please can you take a look at this
>     >> patch. Is this the correct way to do it? It works. Unbelievably, it
>     >> even worked first time!
> 
>     Jifl> Hey Bart, you're out of a job!
> 
> Oh no, not again :-)
> 
> This is a very impressive effort, although none of it matches with
> how I had intended things to work :-)

Yes, without having the big picture of how libcdl works, its easy for
me the find another solution than what you have i mind.
 
> If a CDL script starts relying on new libcdl functionality we need
> to provide new binaries and get people to download and install
> them. Many people will ignore that request, and you can end up with
> people complaining about strange error messages.

I thought about that. My define_proc is inside an option, which by
default is disabled. You only need the modified libcdl is you want to
use the password protected redboot. Even then, my tcl script does...

if {{} == [info commands get_value]} {
    puts stderr "Your version of libcdl is too old to support configurations"
    puts stderr "which include a fixed reboot password. Please either "
    puts stderr "upgrade/recompile your configuration tool, or disable option"
    puts stderr "CYGBLD_BUILD_REDBOOT_WITH_PASSWORD_FIXED."
    exit 1
} else {
...

}

For ecosconfig, this works well. What i don't know is where the output
will go if you are using the GUI.

     Andrew


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