Hi John,<br><br>Thanks for your suggestion. I tried it but didn't work. I think I haven't explained my problem properly.<br><br>If
I run the configure script with the CONSOLE_USE_INTERRUPTS=1 then,
"make" will try to compile console.c. So, I think that the
CONSOLE_USE_INTERRUPTS flag is working properly.<br>
<br>The problem is while compiling console.c. It can not find
ringbuf.h. My guess is that I have a problem with the includes or the
way I have placed the directories:<br><br><br>The toolchain is at:<br>/opt/rtems-4.8.0<br>
  |-bin<br>  |-include<br>  |-info<br>  |-lib<br>  |-libexec<br>  |-man<br>  |-share<br>  |-sparc-rtems<br><br>And the rtems source code is located at:<br>/tools/rtems-4.8.0<br>  |-aclocal<br>  |-autom4te.cache<br>  |-automake<br>

  |-bspkit<br>  |-c<br>  |-cpukit<br>  |-doc<br>  |-make<br>  |-testsuites<br>  |-tools <br><br><br>Where shall ringbuf.h be located at? If I do a find on my system ringbuf.h is at:<br>/opt/rtems-4.8.0/sparc-rtems/leon2/lib/include<div id="mb_0">
/rtems/ringbuf.h<br>
/tools/rtems-4.8.0/cpukit/libcsupport/include/ringbuf.h<br><br><br>Any ideas?<br><br>José<br><br><br><br clear="all"><br>Date: Sat, 15 Mar 2008 19:10:12 +0100<br>
From: "John Pickwick" <<a href="mailto:john.pickwick@free.fr" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">john.pickwick@free.fr</a>><br>
Subject: Re: LEON2 console ringbuf.h<br>
To: <<a href="mailto:rtems-users@rtems.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">rtems-users@rtems.org</a>><br>
Message-ID: <006001c886c7$d04d4d40$6394e552<div style="direction: ltr;">@hal><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi Jose,<br>
<br>
to do this I simply modified the .cfg file (leon2.cfg) and added a
CONSOLE_USE_INTERRUPTS compilation directive to the CFLAGS line.<br>
It works in 4.7.1.<br>
John.<br>
  ----- Original Message -----<br>
  From: <a href="mailto:jfa@reexsa.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jfa@reexsa.com</a><br>
  To: <a href="mailto:rtems-users@rtems.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">rtems-users@rtems.org</a><br>
  Sent: Friday, March 14, 2008 6:21 PM<br>
  Subject: LEON2 console ringbuf.h<br>
<br>
<br>
<br>
  Hi all,<br>
<br>
<br>  I am trying to build an RTEMS for a LEON2 processor using the
UART support (CONSOLE_USE_INTERRUPTS=1). The compilation fails when
processing console.c because it can not find ringbuf.h.<br>
<br>  I have tried with rtems-4.7.99.2 and the prebuitl tools from
Gaisler Research, and with the rtems-4.8 and a self made toolchain.
Both of them work without problems without the UART support.<br>
<br>
  cd b-leon2<br>  ../rtems-4.8.0/configure --target=sparc-rtmes
--enable-rtemsbsp=leon2 --enable-test=samples --disable-itron
--disable-posix CONSOLE_USE_INTERRUPTS=1<br>
  make<br>
<br>
  Any hint of what could I be missing?<br>
<br>
<br>
  Jose<br>
</div></div>