build issue with leon2 bsp code
Ralf Corsepius
ralf.corsepius at rtems.org
Sun Apr 7 13:36:55 UTC 2013
On 04/07/2013 06:03 AM, Milo H. Fields wrote:
> Greetings,
>
> I believe there may be a problem with the bsp code for leon2 bsp. When
> configured with ‘CONSOLE_USE_INTERRUPTS=1’ the resulting make will
> result in a file not found error for ‘ringbuf.h’ for the compile of the
> file ‘c/src/lib/libbsp/sparc/leon2/console/console.c’.
>
> b-leon2 Config:
>
> ../rtems-4.11/configure --target=sparc-rtems \
>
> --enable-rtemsbsp=leon2 \
>
> --prefix=<rtems-install> --enable-posix \
>
> CONSOLE_USE_INTERRUPTS=1
>
> To work around the issue I revised ‘console.c ‘ line 73 from
>
> #include <ringbuf.h>
>
> To
>
> #include <rtems/ringbuf.h>
>
> However I assume a change in ‘Makefile.am’ tree is preferred..
Nah - This clearly is a coding bug.
Changing the #include <ringbuf.h> to #include <rtems/ringbuf.h> would be
the appropriate fix.
Ralf
More information about the users
mailing list