LEON2 console ringbuf.h
jfa at reexsa.com
jfa at reexsa.com
Mon Mar 17 19:13:50 UTC 2008
Hi John,
Thanks for your suggestion. I tried it but didn't work. I think I haven't
explained my problem properly.
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.
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:
The toolchain is at:
/opt/rtems-4.8.0
|-bin
|-include
|-info
|-lib
|-libexec
|-man
|-share
|-sparc-rtems
And the rtems source code is located at:
/tools/rtems-4.8.0
|-aclocal
|-autom4te.cache
|-automake
|-bspkit
|-c
|-cpukit
|-doc
|-make
|-testsuites
|-tools
Where shall ringbuf.h be located at? If I do a find on my system ringbuf.his at:
/opt/rtems-4.8.0/sparc-rtems/leon2/lib/include/rtems/ringbuf.h
/tools/rtems-4.8.0/cpukit/libcsupport/include/ringbuf.h
Any ideas?
José
Date: Sat, 15 Mar 2008 19:10:12 +0100
From: "John Pickwick" <john.pickwick at free.fr>
Subject: Re: LEON2 console ringbuf.h
To: <rtems-users at rtems.org>
Message-ID: <006001c886c7$d04d4d40$6394e552 at hal>
Content-Type: text/plain; charset="iso-8859-1"
Hi Jose,
to do this I simply modified the .cfg file (leon2.cfg) and added a
CONSOLE_USE_INTERRUPTS compilation directive to the CFLAGS line.
It works in 4.7.1.
John.
----- Original Message -----
From: jfa at reexsa.com
To: rtems-users at rtems.org
Sent: Friday, March 14, 2008 6:21 PM
Subject: LEON2 console ringbuf.h
Hi all,
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.cbecause it can not find
ringbuf.h.
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.
cd b-leon2
../rtems-4.8.0/configure --target=sparc-rtmes --enable-rtemsbsp=leon2
--enable-test=samples --disable-itron --disable-posix
CONSOLE_USE_INTERRUPTS=1
make
Any hint of what could I be missing?
Jose
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20080317/e3bf34ee/attachment-0001.html>
More information about the users
mailing list