[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

adding a new driver in RTEMS



Hi Joel,


i am working with the rtems-4.6.5 version. I performed all the steps you 
mentioned before (also the ones for the older versions) and when i try to 
compile the RTEMS distribution i get an error:

make[7]: *** No rule to make target 
`../../../../../../../leon2/lib/include/bspopts.h', needed by 
`preinstall-am'.  Stop.
make[7]: Leaving directory 
`/home/aitor/gaisler/b-rtems/sparc-rtems/c/leon2/lib/libbsp/sparc/leon2/include'
make[6]: *** [preinstall-recursive] Error 1
make[6]: Leaving directory 
`/home/aitor/gaisler/b-rtems/sparc-rtems/c/leon2/lib/libbsp/sparc/leon2'
make[5]: *** [preinstall-recursive] Error 1
make[5]: Leaving directory 
`/home/aitor/gaisler/b-rtems/sparc-rtems/c/leon2/lib/libbsp/sparc'
make[4]: *** [preinstall-recursive] Error 1
make[4]: Leaving directory 
`/home/aitor/gaisler/b-rtems/sparc-rtems/c/leon2/lib/libbsp'
make[3]: *** [preinstall-recursive] Error 1
make[3]: Leaving directory 
`/home/aitor/gaisler/b-rtems/sparc-rtems/c/leon2'
make[2]: *** [erc32] Error 1
make[2]: Leaving directory `/home/aitor/gaisler/b-rtems/sparc-rtems/c'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/aitor/gaisler/b-rtems/sparc-rtems/c'
make: *** [all-recursive] Error 1

Any idea ?

Cheers,
        Aitor


rtems-users-bounces+aitor.viana.sanchez=esa.int at rtems.org wrote on 
16/05/2007 15:17:43:

> Aitor.Viana.Sanchez at esa.int wrote:
> >
> > Hi everybody,
> >
> > i want to add a new driver in the RTEMS source code for a leon2
> > platform. The driver directory i created is:
> >
> > *c/src/lib/libbsp/sparc/leon2/mydriver*
> >
> > and I also put the header file in the
> > *c/src/lib/libbsp/sparc/leon2/include/* directory (both directories
> > relative to the src root directory).
> >
> > What do I need to add to the Makefiles (or whereever)  to compile my
> > drivers and to include them in the final RTEMS compiled version ?
> >
> Depending on the version of RTEMS the instructions differ in precise
> details but
> in general terms, they are:

> + make sure you have the proper RTEMS automake and autoconf installed
> and at the head of your PATH
> + Add your driver to the libbsp/sparc/leon2/Makefile.am
> + (older RTEMS) Add libbsp/sparc/leon2/mydriver/Makefile.am
> + (older RTEMS) Add mydriver to wrapup/Makefile.am
> + while in libbsp/sparc/leon2 run bootstrap
> 
> In newer RTEMS versions, there is only 1 Makefile.am per BSP (ignoring
> tools)
> and all edits are in there.

> --joel
> >
> > Many thanks
> >
> > Aitor
> > 
------------------------------------------------------------------------
> >
> > _______________________________________________
> > rtems-users mailing list
> > rtems-users at rtems.com
> > http://rtems.rtems.org/mailman/listinfo/rtems-users
> >

> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rtems.rtems.org/pipermail/rtems-users/attachments/20070516/70022cf1/attachment.html