This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Modifying memory layout, possible?
- To: Andreas dot Karlsson at combitechsystems dot com
- Subject: Re: [ECOS] Modifying memory layout, possible?
- From: Jonathan Larmour <jlarmour at cygnus dot co dot uk>
- Date: Wed, 01 Nov 2000 13:15:58 +0000
- CC: jskov at redhat dot com, ecos-discuss at sourceware dot cygnus dot com
- Organization: Red Hat UK Ltd.
- References: <2253171AF143D21185A60000F8FA748B0229AA86@pluto.combitech.se>
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