In the src/Makefile I also modified the configure statement:<br><br>configure:<br>    -mkdir $(PREFIX)/src/build<br>    cd $(PREFIX)/src/build; \<br>    $(PREFIX)/src/$(RTEMSDIR)/configure --prefix=$(PREFIX) \<br>    --target=sparc-rtems --disable-itron --disable-tests --enable-cxx --disable-docs \<br>
    --enable-maintainer-mode --enable-rtemsbsp="$(BSPS)"<br><br>I don't know whether this is the "build tree" you tell about...<br><br>Thanks,,<br><br>aitor<br><br><br><div class="gmail_quote">On Mon, Feb 4, 2008 at 6:20 PM, Joel Sherrill <<a href="mailto:joel.sherrill@oarcorp.com">joel.sherrill@oarcorp.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">Aitor Viana wrote:<br>
> Hi all,<br>
><br>
> I am trying to include a new driver for the leon2 bsp, and I don't<br>
> success because I think I am missing steps.<br>
><br>
> - In the src/rtems-4.8/c/src/lib/libbsp/sparc/leon2 folder I have<br>
> created a new folder, lets call this folder newdriver with a new file<br>
> newdriver.c<br>
> - then, in the src/rtems-4.8/c/src/lib/libbsp/sparc/leon2/Makefile.am<br>
> I have added<br>
><br>
> # NEWDRIVER<br>
> noinst_PROGRAMS newdriver.rel<br>
> newdriver_rel_SOURCES = newdriver/newdriver.c<br>
> newdriver_rel_CPPFLAGS = $(AM_CPPFLAGS)<br>
> newdriver_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
><br>
> libbsp_a_LIBADD = startup.rel console.rel clock.rel timer.rel<br>
> gnatsupp.rel \<br>
>                   amba.rel rasta.rel uart.rel spw.rel can.rel brm.rel<br>
> pci.rel \<br>
>                   cchip.rel newdriver.rel<br>
><br>
> then I, in the src directory, I run:<br>
><br>
> /> ./bootstrap<br>
> /> make configure<br>
> /> make compile<br>
><br>
> But looking into the build directory I don't find anything regarding<br>
> newdriver.<br>
><br>
> Am I missing something?<br>
><br>
</div></div>When you are doing this type of modification your build tree<br>
must have been configured with --enable-maintainer-mode.<br>
You can also remove the build tree and try it again.<br>
<br>
It doesn't appear that you missed anything obvious other than that.<br>
> Thanks in advance.<br>
><br>
> Aitor<br>
><br>
<font color="#888888"><br>
<br>
--<br>
Joel Sherrill, Ph.D.             Director of Research & Development<br>
<a href="mailto:joel.sherrill@OARcorp.com">joel.sherrill@OARcorp.com</a>        On-Line Applications Research<br>
Ask me about RTEMS: a free RTOS  Huntsville AL 35805<br>
   Support Available             (256) 722-9985<br>
<br>
<br>
</font></blockquote></div><br>