New driver inclusion on RTEMS 4.7.99.2
Aitor Viana
aitor.viana.sanchez at esa.int
Mon Feb 4 17:25:06 UTC 2008
In the src/Makefile I also modified the configure statement:
configure:
-mkdir $(PREFIX)/src/build
cd $(PREFIX)/src/build; \
$(PREFIX)/src/$(RTEMSDIR)/configure --prefix=$(PREFIX) \
--target=sparc-rtems --disable-itron --disable-tests --enable-cxx
--disable-docs \
--enable-maintainer-mode --enable-rtemsbsp="$(BSPS)"
I don't know whether this is the "build tree" you tell about...
Thanks,,
aitor
On Mon, Feb 4, 2008 at 6:20 PM, Joel Sherrill <joel.sherrill at oarcorp.com>
wrote:
> 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20080204/2c3f9cd4/attachment-0001.html>
More information about the users
mailing list