[ECOS] Modifying memory layout, possible?
Jonathan Larmour
jlarmour@cygnus.co.uk
Wed Nov 1 05:16:00 GMT 2000
Andreas.Karlsson@combitechsystems.com wrote:
>
> ok,
>
> I had to modify the call to tclsh in flash_cksum.tcl from
>
> exec tclsh "$0" ${1+"$@"} to
>
> exec cygtclsh80 "$0" ${1+"$@"}
>
> but now the compiler says that it can't find flash_cksum.tcl. But in my
> world it definitely is there.
Firstly, make sure you do have a /bin/sh.exe. If ls -l /bin/sh.exe doesn't
show something, then you'll probably need to use the cygwin mount command
to put the cygwin bin directory at /bin.
Secondly, just for consistency, replace the blurb at the top of
flash_cksum.tcl with this:
!/bin/sh
# these lines restart using the tcl shell \
exec sh -c "if ( echo | tclsh ) 2>/dev/null ; then \
exec tclsh \"${0}\" ${1+${*}} ; \
elif ( echo | cygtclsh80 ) 2>/dev/null ; then \
exec cygtclsh80 \"${0}\" ${1+${*}} ; \
else \
echo Could not find TCL interpreter ; \
exit 1 ; \
fi"
Yes, there is much magic here.
Jifl
--
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow." || These opinions are all my own fault
More information about the Ecos-discuss
mailing list