<br><font size=2 face="sans-serif">Hi Joel,</font>
<br>
<br>
<br><font size=2 face="sans-serif">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:</font>
<br>
<br><font size=2 face="sans-serif">make[7]: *** No rule to make target
`../../../../../../../leon2/lib/include/bspopts.h', needed by `preinstall-am'.
Stop.</font>
<br><font size=2 face="sans-serif">make[7]: Leaving directory `/home/aitor/gaisler/b-rtems/sparc-rtems/c/leon2/lib/libbsp/sparc/leon2/include'</font>
<br><font size=2 face="sans-serif">make[6]: *** [preinstall-recursive]
Error 1</font>
<br><font size=2 face="sans-serif">make[6]: Leaving directory `/home/aitor/gaisler/b-rtems/sparc-rtems/c/leon2/lib/libbsp/sparc/leon2'</font>
<br><font size=2 face="sans-serif">make[5]: *** [preinstall-recursive]
Error 1</font>
<br><font size=2 face="sans-serif">make[5]: Leaving directory `/home/aitor/gaisler/b-rtems/sparc-rtems/c/leon2/lib/libbsp/sparc'</font>
<br><font size=2 face="sans-serif">make[4]: *** [preinstall-recursive]
Error 1</font>
<br><font size=2 face="sans-serif">make[4]: Leaving directory `/home/aitor/gaisler/b-rtems/sparc-rtems/c/leon2/lib/libbsp'</font>
<br><font size=2 face="sans-serif">make[3]: *** [preinstall-recursive]
Error 1</font>
<br><font size=2 face="sans-serif">make[3]: Leaving directory `/home/aitor/gaisler/b-rtems/sparc-rtems/c/leon2'</font>
<br><font size=2 face="sans-serif">make[2]: *** [erc32] Error 1</font>
<br><font size=2 face="sans-serif">make[2]: Leaving directory `/home/aitor/gaisler/b-rtems/sparc-rtems/c'</font>
<br><font size=2 face="sans-serif">make[1]: *** [all-recursive] Error 1</font>
<br><font size=2 face="sans-serif">make[1]: Leaving directory `/home/aitor/gaisler/b-rtems/sparc-rtems/c'</font>
<br><font size=2 face="sans-serif">make: *** [all-recursive] Error 1</font>
<br>
<br><font size=2 face="sans-serif">Any idea ?</font>
<br>
<br><font size=2 face="sans-serif">Cheers,</font>
<br><font size=2 face="sans-serif"> Aitor</font>
<br>
<br>
<br><font size=2><tt>rtems-users-bounces+aitor.viana.sanchez=esa.int@rtems.org
wrote on 16/05/2007 15:17:43:<br>
<br>
> Aitor.Viana.Sanchez@esa.int wrote:<br>
> ><br>
> > Hi everybody,<br>
> ><br>
> > i want to add a new driver in the RTEMS source code for a leon2<br>
> > platform. The driver directory i created is:<br>
> ><br>
> > *c/src/lib/libbsp/sparc/leon2/mydriver*<br>
> ><br>
> > and I also put the header file in the<br>
> > *c/src/lib/libbsp/sparc/leon2/include/* directory (both directories<br>
> > relative to the src root directory).<br>
> ><br>
> > What do I need to add to the Makefiles (or whereever) to
compile my<br>
> > drivers and to include them in the final RTEMS compiled version
?<br>
> ><br>
> Depending on the version of RTEMS the instructions differ in precise<br>
> details but<br>
> in general terms, they are:<br>
</tt></font>
<br><font size=2><tt>> + make sure you have the proper RTEMS automake
and autoconf installed<br>
> and at the head of your PATH</tt></font>
<br><font size=2><tt>> + Add your driver to the libbsp/sparc/leon2/Makefile.am<br>
> + (older RTEMS) Add libbsp/sparc/leon2/mydriver/Makefile.am<br>
> + (older RTEMS) Add mydriver to wrapup/Makefile.am<br>
> + while in libbsp/sparc/leon2 run bootstrap</tt></font>
<br><font size=2><tt>> <br>
> In newer RTEMS versions, there is only 1 Makefile.am per BSP (ignoring<br>
> tools)<br>
> and all edits are in there.<br>
</tt></font>
<br><font size=2><tt>> --joel<br>
> ><br>
> > Many thanks<br>
> ><br>
> > Aitor<br>
> > ------------------------------------------------------------------------<br>
> ><br>
> > _______________________________________________<br>
> > rtems-users mailing list<br>
> > rtems-users@rtems.com<br>
> > http://rtems.rtems.org/mailman/listinfo/rtems-users<br>
> ><br>
</tt></font>
<br><font size=2><tt>> _______________________________________________<br>
> rtems-users mailing list<br>
> rtems-users@rtems.com<br>
> http://rtems.rtems.org/mailman/listinfo/rtems-users</tt></font>