<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 12/05/2017 09:01 PM, Joel Sherrill
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAF9ehCV=W5Eb+wXCin=n-D8mAJDe7TeW0vOXXRcq9mJtxuJBiQ@mail.gmail.com">
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Dec 5, 2017 at 1:55 PM, Jiri
Gaisler <span dir="ltr"><<a
href="mailto:jiri@gaisler.se" target="_blank"
moz-do-not-send="true">jiri@gaisler.se</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Building
RSB installs automake-1.12.6, but RTEMS Makefile.am files
seem<br>
to need (exactly) automake-1.13. On top of that, many
linux systems have<br>
1.15 installed by default. Is there a reason why RSB
installs 1.12.6 and<br>
not 1.13? And why can't we use 1.15?<br>
</blockquote>
<div><br>
</div>
<div>My recollection is that our automake version has some
patches but the</div>
<div>bigger problem is that automake dropped support for
some of the old</div>
<div>Cygnus early features. Those were in use and we would
rather move</div>
<div>to waf then invest effort in doing major work on the
autotools version.</div>
<div><br>
</div>
<div>Which files claim to need 1.13? <br>
</div>
</div>
</div>
</div>
</blockquote>
<br>
This is what I get with 1.12 :<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:jiri@carbon:~/ibm/src/rtems/rtems.git/c/src/lib/libbsp/riscv/riscv_grlib$">jiri@carbon:~/ibm/src/rtems/rtems.git/c/src/lib/libbsp/riscv/riscv_grlib$</a>
/opt/rtems/5/bin/automake<br>
configure.ac:14: error: version mismatch. This is Automake 1.12.6,<br>
configure.ac:14: but the definition used by this AM_INIT_AUTOMAKE<br>
configure.ac:14: comes from Automake 1.13. You should recreate<br>
configure.ac:14: aclocal.m4 with aclocal and run automake again.<br>
<br>
<br>
This is what I get with 1.15 :<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:jiri@carbon:~/ibm/src/rtems/rtems.git/c/src/lib/libbsp/riscv/riscv_grlib$">jiri@carbon:~/ibm/src/rtems/rtems.git/c/src/lib/libbsp/riscv/riscv_grlib$</a>
/usr/bin/automake<br>
configure.ac:14: error: version mismatch. This is Automake 1.15,<br>
configure.ac:14: but the definition used by this AM_INIT_AUTOMAKE<br>
configure.ac:14: comes from Automake 1.13. You should recreate<br>
configure.ac:14: aclocal.m4 with aclocal and run automake again.<br>
Makefile.am:54: warning: source file '../../shared/bspreset.c' is in
a subdirectory,<br>
Makefile.am:54: but option 'subdir-objects' is disabled<br>
automake: warning: possible forward-incompatibility.<br>
automake: At least a source file is in a subdirectory, but the
'subdir-objects'<br>
automake: automake option hasn't been enabled. For now, the
corresponding output<br>
automake: object file(s) will be placed in the top-level directory.
However,<br>
automake: this behaviour will change in future Automake versions:
they will<br>
automake: unconditionally cause object files to be placed in the
same subdirectory<br>
automake: of the corresponding sources.<br>
automake: You are advised to start using 'subdir-objects' option
throughout your<br>
automake: project, to avoid future incompatibilities.<br>
Makefile.am:54: warning: source file '../../shared/bspstart.c' is in
a subdirectory,<br>
<br>
<br>
With 1.13 it works, but I still get some weird warnings:<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:jiri@carbon:~/ibm/src/rtems/rtems.git/c/src/lib/libbsp/riscv/riscv_grlib$">jiri@carbon:~/ibm/src/rtems/rtems.git/c/src/lib/libbsp/riscv/riscv_grlib$</a>
automake<br>
Unescaped left brace in regex is deprecated, passed through in
regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/
at /usr/local/automake-1.13/bin/automake line 3922.<br>
<br>
<br>
My bsp is based on the sparc/leon3, and I have reused all
Makefile.am from there ....<br>
<blockquote type="cite"
cite="mid:CAF9ehCV=W5Eb+wXCin=n-D8mAJDe7TeW0vOXXRcq9mJtxuJBiQ@mail.gmail.com">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div><br>
</div>
<div>and be sure that RTEMS tools are at the front of your
path. But you</div>
<div>know that. </div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Sorry if this is a dumb question, but I am trying to bring
up a new bsp<br>
and have problems with generating the proper Makefiles ...<br>
</blockquote>
<div><br>
</div>
<div>New BSP... :)</div>
</div>
</div>
</div>
</blockquote>
<br>
Well, I have designed a simple RISCV processor and slotted it in the
GRLIB SOC system (replacing LEON3). I also have a sis simulator
running RISCV and simulating the whole thing. What I am trying to do
is to make a bsp (riscv_grlib) under libbsp/riscv that reuses all of
the sparc/grlib/amba drivers (without duplicating them). This needs
some trickery in the Makefiles since I try to use files from a
different cpu port... Ideally, all grlib/amba drivers should be in
libchip or libbsp/shared rather then in the sparc port, but I don't
want to change/break anything outside the riscv port.<br>
<br>
Anyhow, I can run hello.exe at the moment but I have some problems
with initializing interrupts. (and generating Makefiles) ...<br>
<br>
Jiri.<br>
<br>
</body>
</html>