This is the mail archive of the ecos-discuss@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]

Re: Modifying memory layout, possible?


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

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