New driver inclusion on RTEMS 4.7.99.2

Joel Sherrill joel.sherrill at OARcorp.com
Mon Feb 4 17:20:22 UTC 2008


Aitor Viana wrote:
> Hi all,
>
> I am trying to include a new driver for the leon2 bsp, and I don't 
> success because I think I am missing steps.
>
> - In the src/rtems-4.8/c/src/lib/libbsp/sparc/leon2 folder I have 
> created a new folder, lets call this folder newdriver with a new file 
> newdriver.c
> - then, in the src/rtems-4.8/c/src/lib/libbsp/sparc/leon2/Makefile.am 
> I have added
>
> # NEWDRIVER
> noinst_PROGRAMS newdriver.rel
> newdriver_rel_SOURCES = newdriver/newdriver.c
> newdriver_rel_CPPFLAGS = $(AM_CPPFLAGS)
> newdriver_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
>
> libbsp_a_LIBADD = startup.rel console.rel clock.rel timer.rel 
> gnatsupp.rel \
>                   amba.rel rasta.rel uart.rel spw.rel can.rel brm.rel 
> pci.rel \
>                   cchip.rel newdriver.rel
>
> then I, in the src directory, I run:
>
> /> ./bootstrap
> /> make configure
> /> make compile
>
> But looking into the build directory I don't find anything regarding 
> newdriver.
>
> Am I missing something?
>
When you are doing this type of modification your build tree
must have been configured with --enable-maintainer-mode.
You can also remove the build tree and try it again.

It doesn't appear that you missed anything obvious other than that.
> Thanks in advance.
>
> Aitor
>


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        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