adding a new driver in RTEMS
Joel Sherrill
joel.sherrill at oarcorp.com
Wed May 16 13:17:43 UTC 2007
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
>
More information about the users
mailing list