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: build_Makefile - does it work with CT-generated trees?


On Tue, 2001-10-23 at 06:57, Dmitry Ryzhkov wrote:
> Hi!
> 
> Does anybody used build_Makefile from ecos/examples with directoty trees 
> generated by ConfigTool?
> 
> The question is: when I save configuration to some work directory, CT creates:
> test_buld/
> test_install/
> test.ecc
> 
> build_Makefile wants to see:
> 
> a) makefile in $HOME (that is either in current or in specifyed directory)
> b) $HOME/install/.../ecos.mak
> 
> Does it mean that I need to rename test_install/ to install/ and place it 
> into test_build and then use test_buils as current directory? Is there more 
> accurate way to use build_Makefile?
> 
> Thanks a lot!

You're right - I never even tried this with ConfigTool setups (since I 
almost exclusively use 'ecosconfig').

Anyway, it's really quite easy to work with.

Assume that you've run ConfigTool and saved your config in /work/test.  
Now that directory looks like this:
  work/
    test/
      machine.ecc
      machine_build/
      machine_install/

Now, to build the standard examples in that environment, do this:
  % cd /work/test/machine_build
  % ln -s /work/test/machine_install install

Now, in your directory (we'll assume the standard examples) that you 
want to run 'build_Makefile'
   work/
     test/
       examples/

  % cd /work/test/examples
  % SRCS=hello.c DST=hello ./build_Makefile /work/test/machine_build
  % make

Works like a charm :-)

      



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