makefiles and CVS

Joel Sherrill joel.sherrill at
Fri Jan 24 14:25:46 UTC 2003

Ralf Corsepius wrote:
> On Fri, 2003-01-24 at 14:01, Salman wrote:
> > Hey guys,
> >
> > I have a package here, which has its own makefile, and provides a single
> > object file, which should be loaded as module into the linux kernel.
> >
> > Now, i've modified the code to load into rtems, and it should be placed
> > in /libbsp/i386/pc386 directory. but i'm confused regarding Makefiles.
> >
> > RTEMS doc, states are the only makefiles required and the
> > configure script generates other makefiles from this. Can anyone suggest
> > how can I go about extracting files out of exisitng
> > Makefiles?
> No way. You need to manually write a or better (much easier)
> write a

Sounds like some piece of documentation needs to be updated to reflect
use of automake now.  Hopefully Salman can point us to the broken

Now this is the auto generated chain: 
  - automake produces 
  - configure produces Makefile
  - auto??? produces
  - autoconf produces configure

Notice that I don't even remember offhand the complete magic.  I rely
on bootstrap also.

So Ralf is pointing you in the right direction, write a and
use bootstrap.  I can't believe that it wouldn't be easier to adapt an
existing RTEMS to compile the pieces you want than to
to bring a Linux Makefile in.  Ultimately, all you want to do is compile
a few files with possibly some macros defined.  

> Alternatively you can try to modify the linux-Makefile to to fit into
> RTEMS source-tree. Something I would strongly discourage you from,
> because IMNSHO, the Linux' kernel Makefiles are not really worth looking
> into, to put it politely ;)]
> > I am now starting to modify rtems code as well, and would like to do
> > this with aid of CVS, but when importing source files, it neglects
> > Makefiles and configure scripts, has anyone experienced this problem
> > before?
> .
> Ralf

Joel Sherrill, Ph.D.             Director of Research & Development
joel at                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985

More information about the users mailing list